Merge branch 'charm' of charmgit:charm into charm
[charm.git] / examples / charm++ / threaded_ring / threaded_ring.h
1 #include "threaded_ring.decl.h"
2
3 int nElems;
4
5 class Main : public CBase_Main
6 {
7 public:
8     Main(CkArgMsg*);
9     Main(CkMigrateMessage*) {}
10 };
11
12 class Ring : public CBase_Ring
13 {
14 public:
15     Ring() {
16         threadWaiting = false;
17         dataHere =  0;
18     }
19     Ring(CkMigrateMessage*) {}
20     void run();
21     void getData();
22     void waitFor();
23 private:
24     CthThread t;
25     int dataHere;
26     bool threadWaiting;
27 };