Changeset 72ba508 for tests/io


Ignore:
Timestamp:
Mar 28, 2022, 8:38:38 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
010636f, 8f2f185
Parents:
ff55092
Message:

Updated test to be easier to debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/io/comp_fair.cfa

    rff55092 r72ba508  
    4949                unsigned curr = __atomic_load_n(&counter, __ATOMIC_SEQ_CST);
    5050
    51                 if(curr >= TIMES) return;
     51                if(curr >= TIMES) break;
    5252
    5353                if(last == curr) {
     
    5959                yield();
    6060        }
     61
     62      mutex(sout) sout | "Spinner done";
    6163}
    6264
     
    9092
    9193      P( globals.sem );
     94
     95      mutex(sout) sout | "Reader done";
    9296}
    9397
     
    110114
    111115      }
     116
     117      mutex(sout) sout | "Writer done";
    112118}
    113119
     
    120126                yield();
    121127        }
     128
     129      mutex(sout) sout | "Yielder done";
    122130}
    123131
Note: See TracChangeset for help on using the changeset viewer.