Changes in / [3265399:d046db2]
- Location:
- src/tests
- Files:
-
- 1 deleted
- 1 edited
-
concurrent/preempt.c (modified) (2 diffs)
-
preempt_longrun/preempt.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/concurrent/preempt.c
r3265399 rd046db2 11 11 } 12 12 13 #ifdef LONG_TEST14 static const unsigned long N = 30_000ul;15 #else16 static const unsigned long N = 500ul;17 #endif18 19 13 static volatile int counter = 0; 20 14 … … 28 22 29 23 void main(worker_t & this) { 30 while(counter < N) {24 while(counter < 1000) { 31 25 if( (counter % 7) == this.value ) { 32 26 int next = __atomic_add_fetch_4(&counter, 1, __ATOMIC_SEQ_CST);
Note:
See TracChangeset
for help on using the changeset viewer.