Ignore:
Timestamp:
Jun 7, 2023, 1:34:57 PM (12 months ago)
Author:
caparson <caparson@…>
Branches:
master
Children:
b7b3e41
Parents:
b5e3a80
Message:

small cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/colby_parsons_MMAth/benchmarks/waituntil/cfa/sidechan.cfa

    rb5e3a80 rfa5e1aa5  
    3737thread Consumer {};
    3838void 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;
    4040    size_t val, i = 0;
    4141    try {
     
    4949thread Producer {};
    5050void 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;
    5252    try {
    5353        for( size_t i = 0;; i++ ) {
Note: See TracChangeset for help on using the changeset viewer.