Changeset fa5e1aa5 for doc/theses/colby_parsons_MMAth/benchmarks
- Timestamp:
- Jun 7, 2023, 1:34:57 PM (21 months ago)
- Branches:
- master
- Children:
- b7b3e41
- Parents:
- b5e3a80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified doc/theses/colby_parsons_MMAth/benchmarks/waituntil/cfa/sidechan.cfa ¶
rb5e3a80 rfa5e1aa5 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.