Changes in src/tests/concurrent/preempt.c [7bdcac1:cb6314e]
- File:
-
- 1 edited
-
src/tests/concurrent/preempt.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/concurrent/preempt.c
r7bdcac1 rcb6314e 2 2 #include <thread> 3 3 #include <time> 4 5 #include "long_tests.h"6 4 7 5 #ifndef PREEMPTION_RATE … … 13 11 } 14 12 15 #ifdef TEST_LONG13 #ifdef LONG_TEST 16 14 static const unsigned long N = 30_000ul; 17 15 #else … … 32 30 33 31 void main(worker_t & this) { 34 while( TEST(counter < N)) {32 while(counter < N) { 35 33 __cfaabi_check_preemption(); 36 34 if( (counter % 7) == this.value ) { … … 42 40 } 43 41 __cfaabi_check_preemption(); 44 KICK_WATCHDOG;45 42 } 46 43 }
Note:
See TracChangeset
for help on using the changeset viewer.