Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/xtend/AMIPull.xtend')
-rw-r--r--extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/xtend/AMIPull.xtend34
1 files changed, 0 insertions, 34 deletions
diff --git a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/xtend/AMIPull.xtend b/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/xtend/AMIPull.xtend
deleted file mode 100644
index d1e1fb28303..00000000000
--- a/extraplugins/qompass-designer/org.eclipse.papyrus.qompass.modellibs.core/src/org/eclipse/papyrus/qompass/modellibs/core/xtend/AMIPull.xtend
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.eclipse.papyrus.qompass.modellibs.core.xtend
-
-import org.eclipse.uml2.uml.Operation
-import static extension org.eclipse.papyrus.qompass.modellibs.core.xtend.Marshalling.*
-
-class AMIPull {
- def operation_(Operation operation) '''
- «IF operation.name.endsWith("Poll")»
- // comment polling function
- if (!resultArrived) {
- // wait for result, condition will be fired upon arrival
- TimeVal timeVal = TimeVal::current () + timeout;
- m_cond.waitUpto (timeout);
- }
- «operation.unmarshall»
- }
- «IF operation.type != null»return retValue;«ENDIF»
- «ELSE»
- // TODO: need suitable constant dimensioning
- pBuffer = &buffer[500]; // grows backwards
- int operationID = ID_[operation.name/];
-
- // now marshall in and inout parameters via ASN.1
- «operation.marshall»
- BEncAsnContent (&pBuffer, &operationID);
-
- pthread_t pt;
- pthread_create (&pt, NULL, staticDispatch, (void *) this);
- // TODO: add semaphore which assures that subsequent calls to [operation.name/] are not executed before dispatch
- // has removed the parameters from the pBuffer stack (pBuffer can be corrupted).
- // even worse: buffer will be deallocated even without a 2nd call!
- «ENDIF»
- '''
-} \ No newline at end of file

Back to the top