Changeset b110bcc for tests/concurrent/actors/types.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/types.cfa
r2ed94a9 rb110bcc 18 18 int num; 19 19 }; 20 static inline void ?{}( d_msg & this ) { ((message &)this){}; }21 20 22 21 // this isn't a valid receive routine since int is not a message type … … 36 35 inline actor; 37 36 }; 38 static inline void ?{}( derived_actor2 & this ) { ((actor &)this){}; }39 37 40 38 Allocation receive( derived_actor2 & receiver, d_msg & msg ) { … … 43 41 } 44 42 45 struct derived_actor3 { 46 inline actor; 47 }; 48 static inline void ?{}( derived_actor3 & this ) { ((actor &)this){}; } 49 43 struct derived_actor3 { inline actor; }; 44 struct derived_actor4 { inline derived_actor3; }; 50 45 struct d_msg2 { 51 46 inline message; 52 47 int num; 53 48 }; 54 static inline void ?{}( d_msg2 & this ) { ((message &)this){}; }55 49 56 50 Allocation receive( derived_actor3 & receiver, d_msg & msg ) { … … 78 72 b.num = 1; 79 73 c.num = 2; 80 a | b |c;74 a << b << c; 81 75 stop_actor_system(); 82 76 … … 86 80 d_msg d_ac2_msg; 87 81 d_ac2_msg.num = 3; 88 d_ac2_0 |d_ac2_msg;89 d_ac2_1 |d_ac2_msg;82 d_ac2_0 << d_ac2_msg; 83 d_ac2_1 << d_ac2_msg; 90 84 stop_actor_system(); 91 85 … … 99 93 d_msg d_ac23_msg; 100 94 d_ac23_msg.num = 4; 101 d_ac3_0 |d_ac23_msg;102 d_ac2_2 |d_ac23_msg;95 d_ac3_0 << d_ac23_msg; 96 d_ac2_2 << d_ac23_msg; 103 97 stop_actor_system(); 104 98 } // RAII to clean up executor … … 113 107 b1.num = -1; 114 108 c2.num = 5; 115 a3 | b1 | c2; 109 a3 << b1 << c2; 110 stop_actor_system(); 111 } // RAII to clean up executor 112 113 { 114 printf("nested inheritance actor test\n"); 115 executor e{ 1, Processors, Processors == 1 ? 1 : Processors * 4, true }; 116 start_actor_system( Processors ); 117 derived_actor4 a4; 118 d_msg b1; 119 d_msg2 c2; 120 b1.num = -1; 121 c2.num = 5; 122 a4 << b1 << c2; 116 123 stop_actor_system(); 117 124 } // RAII to clean up executor
Note:
See TracChangeset
for help on using the changeset viewer.