- Timestamp:
- Jun 26, 2023, 10:11:03 PM (3 years ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- b9c06b98
- Parents:
- 65ef0cd (diff), 917e1fd (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
-
doc/theses/colby_parsons_MMAth/benchmarks/waituntil/cfa/sidechan.cfa
r65ef0cd rc4497e3 37 37 thread Consumer {}; 38 38 void main( Consumer & this ) { 39 int idx = __atomic_fetch_add( &cons_counter, 1, __ATOMIC_SEQ_CST ) % Channels;39 const int idx = __atomic_fetch_add( &cons_counter, 1, __ATOMIC_SEQ_CST ) % Channels; 40 40 size_t val, i = 0; 41 41 try { … … 49 49 thread Producer {}; 50 50 void main( Producer & this ) { 51 int idx = __atomic_fetch_add( &prod_counter, 1, __ATOMIC_SEQ_CST ) % Channels;51 const int idx = __atomic_fetch_add( &prod_counter, 1, __ATOMIC_SEQ_CST ) % Channels; 52 52 try { 53 53 for( size_t i = 0;; i++ ) {
Note:
See TracChangeset
for help on using the changeset viewer.