- File:
-
- 1 edited
-
tests/concurrent/actors/pingpong.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/actors/pingpong.cfa
r4933f18 r1c75ef8 6 6 #include <actor.hfa> 7 7 8 struct ping { inline actor; }; 9 struct pong { inline actor; }; 8 struct ping { 9 inline actor; 10 }; 11 static inline void ?{}( ping & this ) { ((actor &)this){}; } 12 13 struct pong { 14 inline actor; 15 }; 16 static inline void ?{}( pong & this ) { ((actor &)this){}; } 10 17 11 18 struct p_msg { … … 25 32 Allocation retval = Nodelete; 26 33 if ( msg.count == times ) retval = Finished; 27 *po <<msg;34 *po | msg; 28 35 return retval; 29 36 } … … 35 42 Allocation retval = Nodelete; 36 43 if ( msg.count == times ) retval = Finished; 37 *pi <<msg;44 *pi | msg; 38 45 return retval; 39 46 } … … 53 60 pi = &pi_actor; 54 61 p_msg m; 55 pi_actor <<m;62 pi_actor | m; 56 63 stop_actor_system(); 57 64
Note:
See TracChangeset
for help on using the changeset viewer.