- File:
-
- 1 edited
-
src/tests/preempt_longrun/yield.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/yield.c
rb9da9585 r7bdcac1 2 2 #include <thread> 3 3 #include <time> 4 5 #include "long_tests.h" 4 6 5 7 #ifndef PREEMPTION_RATE … … 11 13 } 12 14 13 #ifdef LONG_TEST15 #ifdef TEST_LONG 14 16 static const unsigned long N = 9_750_000ul; 15 17 #else … … 20 22 21 23 void main(worker_t & this) { 22 for(int i = 0; i < N; i++) {24 for(int i = 0; TEST(i < N); i++) { 23 25 yield(); 26 KICK_WATCHDOG; 24 27 } 25 28 }
Note:
See TracChangeset
for help on using the changeset viewer.