Changeset b110bcc for tests/concurrent/actors/executor.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/executor.cfa
r2ed94a9 rb110bcc 15 15 }; 16 16 void ?{}( d_actor & this ) with(this) { 17 ((actor &)this){};18 17 id = ids++; 19 18 gstart = (&this + (id / Set * Set - id)); // remember group-start array-element … … 24 23 25 24 struct d_msg { inline message; } shared_msg; 26 void ?{}( d_msg & this ) { ((message &) this){ Nodelete }; }27 25 28 26 Allocation receive( d_actor & this, d_msg & msg ) with( this ) { … … 30 28 if ( recs % Batch == 0 ) { 31 29 for ( i; Batch ) { 32 gstart[sends % Set] |shared_msg;30 gstart[sends % Set] << shared_msg; 33 31 sends += 1; 34 32 } … … 85 83 } // switch 86 84 87 88 85 executor e{ Processors, Processors, Processors == 1 ? 1 : Processors * 512, true }; 89 86 … … 97 94 98 95 for ( i; Actors ) { 99 actors[i] |shared_msg;96 actors[i] << shared_msg; 100 97 } // for 101 98
Note:
See TracChangeset
for help on using the changeset viewer.