- Timestamp:
- Mar 28, 2022, 8:38:38 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 010636f, 8f2f185
- Parents:
- ff55092
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/io/comp_fair.cfa
rff55092 r72ba508 49 49 unsigned curr = __atomic_load_n(&counter, __ATOMIC_SEQ_CST); 50 50 51 if(curr >= TIMES) return;51 if(curr >= TIMES) break; 52 52 53 53 if(last == curr) { … … 59 59 yield(); 60 60 } 61 62 mutex(sout) sout | "Spinner done"; 61 63 } 62 64 … … 90 92 91 93 P( globals.sem ); 94 95 mutex(sout) sout | "Reader done"; 92 96 } 93 97 … … 110 114 111 115 } 116 117 mutex(sout) sout | "Writer done"; 112 118 } 113 119 … … 120 126 yield(); 121 127 } 128 129 mutex(sout) sout | "Yielder done"; 122 130 } 123 131
Note: See TracChangeset
for help on using the changeset viewer.