Changeset d2b94f2
- Timestamp:
- Jan 30, 2023, 9:35:31 PM (22 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- ce691d2
- Parents:
- 1c75ef8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/actors/types.cfa
r1c75ef8 rd2b94f2 26 26 } 27 27 28 Allocation receive( derived_actor & receiver, d_msg & msg ) {29 return receive( receiver, msg.num );30 }31 32 28 struct derived_actor2 { 33 29 inline actor; 34 30 }; 35 31 static inline void ?{}( derived_actor2 & this ) { ((actor &)this){}; } 36 37 Allocation receive( derived_actor2 & receiver, d_msg & msg ) {38 mutex(sout) sout | msg.num;39 return Finished;40 }41 32 42 33 struct derived_actor3 { … … 50 41 }; 51 42 static inline void ?{}( d_msg2 & this ) { ((message &)this){}; } 43 44 Allocation receive( derived_actor2 & receiver, d_msg & msg ) { 45 mutex(sout) sout | msg.num; 46 return Finished; 47 } 48 49 Allocation receive( derived_actor & receiver, d_msg & msg ) { 50 return receive( receiver, msg.num ); 51 } 52 52 53 53 Allocation receive( derived_actor3 & receiver, d_msg & msg ) {
Note: See TracChangeset
for help on using the changeset viewer.