Changeset f6fd22a4 for tests/concurrency
- Timestamp:
- Jun 14, 2023, 4:45:37 PM (18 months ago)
- Branches:
- master
- Children:
- 994030ce
- Parents:
- 8d6786b
- Location:
- tests/concurrency/actors
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/actors/.expect/inherit.txt
r8d6786b rf6fd22a4 4 4 A 5 5 A 6 A 7 A 6 8 Finished -
tests/concurrency/actors/inherit.cfa
r8d6786b rf6fd22a4 7 7 8 8 struct Server { inline actor; }; 9 9 10 struct Server2 { inline Server; int b; }; 11 void ^?{}( Server2 & this ) { mutex(sout) sout | 'A'; } 12 10 13 struct D_msg { int a; inline message; }; 11 struct D_msg2 { inline D_msg; };12 13 void ^?{}( Server2 & this ) { mutex(sout) sout | 'A'; }14 14 void ?{}( D_msg & this ) { set_allocation( this, Delete ); } 15 15 void ^?{}( D_msg & this ) { mutex(sout) sout | 'A'; } 16 17 struct D_msg2 { inline D_msg; }; 16 18 17 19 allocation handle() { … … 30 32 D_msg * dm = alloc(); 31 33 (*dm){}; 32 D_msg2 dm2; 34 D_msg2 * dm2 = alloc(); 35 (*dm2){}; 33 36 Server2 * s = alloc(); 34 37 (*s){}; … … 36 39 (*s2){}; 37 40 *s << *dm; 38 *s2 << dm2;41 *s2 << *dm2; 39 42 stop_actor_system(); 40 43 } … … 44 47 D_msg * dm = alloc(); 45 48 (*dm){}; 46 D_msg2 dm2; 49 D_msg2 * dm2 = alloc(); 50 (*dm2){}; 47 51 s[0] << *dm; 48 s[1] << dm2;52 s[1] << *dm2; 49 53 stop_actor_system(); 50 54 }
Note: See TracChangeset
for help on using the changeset viewer.