Changeset 757099e
- Timestamp:
- Jan 31, 2023, 3:00:47 PM (22 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 0393653
- Parents:
- a8e8c67
- Location:
- tests/concurrent/actors
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/actors/types.cfa
ra8e8c67 r757099e 5 5 #include <stdio.h> 6 6 #include <mutex_stmt.hfa> 7 8 struct dummy_actor { actor a; }; // this won't work since the actor isn't inlined 7 9 8 10 struct derived_actor { … … 26 28 } 27 29 30 Allocation receive( derived_actor & receiver, d_msg & msg ) { 31 return receive( receiver, msg.num ); 32 } 33 28 34 struct derived_actor2 { 35 struct nested { int i; }; // testing nested before inline 29 36 inline actor; 30 37 }; 31 38 static inline void ?{}( derived_actor2 & this ) { ((actor &)this){}; } 39 40 Allocation receive( derived_actor2 & receiver, d_msg & msg ) { 41 mutex(sout) sout | msg.num; 42 return Finished; 43 } 32 44 33 45 struct derived_actor3 { … … 41 53 }; 42 54 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 55 53 56 Allocation receive( derived_actor3 & receiver, d_msg & msg ) {
Note: See TracChangeset
for help on using the changeset viewer.