110
|
1 union Data {
|
|
2 ///home/anatofuz/src/firefly/hg/Gears/Gears/src/parallel_execution/../parallel_execution/Atomic.h
|
|
3 #ifndef ATOMIC_STRUCT
|
|
4 struct Atomic {
|
|
5 union Data* atomic;
|
|
6 ...
|
|
7 #else
|
|
8 struct Node;
|
|
9 #endif
|
|
10 ///home/anatofuz/src/firefly/hg/Gears/Gears/src/parallel_execution/../parallel_execution/examples/DPPMC/Phils.h
|
|
11 #ifndef PHILS_STRUCT
|
|
12 struct Phils {
|
|
13 union Data* phils;
|
|
14 enum Code putdown_lfork;
|
|
15 enum Code putdown_rfork;
|
|
16 enum Code thinking;
|
|
17 enum Code pickup_rfork;
|
|
18 enum Code pickup_lfork;
|
|
19 enum Code eating;
|
|
20 enum Code next;
|
|
21 } Phils;
|
|
22 #define PHILS_STRUCT
|
|
23 #else
|
|
24 struct Phils;
|
|
25 #endif
|
|
26 ///home/anatofuz/src/firefly/hg/Gears/Gears/src/parallel_execution/../parallel_execution/examples/DPPMC/PhilsImpl.h
|
|
27 #ifndef PHILSIMPL_STRUCT
|
|
28 struct PhilsImpl {
|
|
29 int self;
|
|
30 struct AtomicT_int* Leftfork;
|
|
31 struct AtomicT_int* Rightfork;
|
|
32 enum Code next;
|
|
33 } PhilsImpl;
|
|
34 #define PHILSIMPL_STRUCT
|
|
35 #else
|
|
36 struct PhilsImpl;
|
|
37 #endif
|
|
38 ...
|
|
39 }
|