- File:
-
- 1 edited
-
src/tests/preempt_longrun/yield.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/yield.c
r7bdcac1 rb9da9585 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 = 9_750_000ul; 17 15 #else … … 22 20 23 21 void main(worker_t & this) { 24 for(int i = 0; TEST(i < N); i++) {22 for(int i = 0; i < N; i++) { 25 23 yield(); 26 KICK_WATCHDOG;27 24 } 28 25 }
Note:
See TracChangeset
for help on using the changeset viewer.