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