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