Changeset b110bcc for tests/concurrent/actors/dynamic.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/dynamic.cfa
r2ed94a9 rb110bcc 7 7 int Times = 1000000; // default values 8 8 9 struct derived_actor { 10 inline actor; 11 }; 12 void ?{}( derived_actor & this ) { ((actor &)this){}; } 13 9 struct derived_actor { inline actor; }; 14 10 struct derived_msg { 15 11 inline message; … … 23 19 void ?{}( derived_msg & this ) { ((derived_msg &)this){ 0 }; } 24 20 25 26 21 Allocation receive( derived_actor & receiver, derived_msg & msg ) { 27 22 if ( msg.cnt >= Times ) { … … 33 28 derived_actor * d_actor = alloc(); 34 29 (*d_actor){}; 35 *d_actor |*d_msg;30 *d_actor << *d_msg; 36 31 return Delete; 37 32 } … … 63 58 derived_actor * d_actor = alloc(); 64 59 (*d_actor){}; 65 *d_actor |*d_msg;60 *d_actor << *d_msg; 66 61 67 62 printf("stopping\n");
Note:
See TracChangeset
for help on using the changeset viewer.