- File:
-
- 1 edited
-
src/tests/concurrent/coroutineYield.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/concurrent/coroutineYield.c
r7bdcac1 rb9da9585 4 4 #include <thread> 5 5 #include <time> 6 7 #include "long_tests.h"8 6 9 7 #ifndef PREEMPTION_RATE … … 15 13 } 16 14 17 #ifdef TEST_LONG15 #ifdef LONG_TEST 18 16 static const unsigned long N = 600_000ul; 19 17 #else … … 35 33 int main(int argc, char* argv[]) { 36 34 Coroutine c; 37 for(int i = 0; TEST(i < N); i++) {35 for(int i = 0; i < N; i++) { 38 36 sout | "Thread 1" | endl; 39 37 resume(c); 40 38 sout | "Thread 2" | endl; 41 39 yield(); 42 KICK_WATCHDOG;43 40 } 44 41 }
Note:
See TracChangeset
for help on using the changeset viewer.