Changes in kernel/test/synch/workq-test-core.h [11b285d:e3306d04] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/workq-test-core.h
r11b285d re3306d04 149 149 { 150 150 for (int i = 0; i < WAVES; ++i) { 151 atomic_s et(&call_cnt[i], 0);151 atomic_store(&call_cnt[i], 0); 152 152 } 153 153 … … 179 179 180 180 for (int i = 0; i < WAVES; ++i) { 181 while (atomic_ get(&call_cnt[i]) < exp_call_cnt &&181 while (atomic_load(&call_cnt[i]) < exp_call_cnt && 182 182 sleep_cnt < max_sleep_cnt) { 183 183 TPRINTF("."); … … 190 190 191 191 for (int i = 0; i < WAVES; ++i) { 192 if (atomic_ get(&call_cnt[i]) == exp_call_cnt) {193 TPRINTF("Ok: % " PRIua "calls in wave %d, as expected.\n",194 atomic_ get(&call_cnt[i]), i);192 if (atomic_load(&call_cnt[i]) == exp_call_cnt) { 193 TPRINTF("Ok: %zu calls in wave %d, as expected.\n", 194 atomic_load(&call_cnt[i]), i); 195 195 } else { 196 196 success = false; 197 TPRINTF("Error: % " PRIua "calls in wave %d, but %zu expected.\n",198 atomic_ get(&call_cnt[i]), i, exp_call_cnt);197 TPRINTF("Error: %zu calls in wave %d, but %zu expected.\n", 198 atomic_load(&call_cnt[i]), i, exp_call_cnt); 199 199 } 200 200 }
Note:
See TracChangeset
for help on using the changeset viewer.