examples: add example program demonstrating sync entry methods
[charm.git] / examples / charm++ / X10 / X10_lib.h
1 // X10_lib.h
2
3 #include <pup.h>
4 #include <converse.h>
5 #include <charm++.h>
6
7
8
9 extern void mainThread(void);
10 extern void asnycHandler(int whichStatement);
11 extern void futureHandler(int whichStatement);
12
13 typedef void* FinishHandle;
14 typedef CkFutureID* FutureHandle;
15
16 FinishHandle beginFinish();
17 void endFinish(void *FinishFutureList);
18 void asyncCall(void *FinishFutureList, int place, int whichFunction, void *packedParams);
19
20 FutureHandle futureCall(int place, int whichFunction, void *packedParams);
21 void *futureForce(FutureHandle);