Changeset b110bcc for tests/concurrent/actors/pingpong.cfa
- Timestamp:
- Apr 21, 2023, 5:36:12 PM (2 years ago)
- Branches:
- ADT, master
- Children:
- 28f8f15, 6e4c44d
- Parents:
- 2ed94a9 (diff), 699a97d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/actors/pingpong.cfa
r2ed94a9 rb110bcc 6 6 #include <actor.hfa> 7 7 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){}; } 8 struct ping { inline actor; }; 9 struct pong { inline actor; }; 17 10 18 11 struct p_msg { … … 32 25 Allocation retval = Nodelete; 33 26 if ( msg.count == times ) retval = Finished; 34 *po |msg;27 *po << msg; 35 28 return retval; 36 29 } … … 42 35 Allocation retval = Nodelete; 43 36 if ( msg.count == times ) retval = Finished; 44 *pi |msg;37 *pi << msg; 45 38 return retval; 46 39 } … … 60 53 pi = &pi_actor; 61 54 p_msg m; 62 pi_actor |m;55 pi_actor << m; 63 56 stop_actor_system(); 64 57
Note:
See TracChangeset
for help on using the changeset viewer.