Changeset b067d9b for longrun_tests/yield.cfa
- Timestamp:
- Oct 29, 2019, 4:01:24 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 773db65, 9421f3d8
- Parents:
- 7951100 (diff), 8364209 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
longrun_tests/yield.cfa (moved) (moved from src/tests/preempt_longrun/yield.c ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
longrun_tests/yield.cfa
r7951100 rb067d9b 1 #include <kernel> 2 #include <thread> 3 #include <time> 1 #include <kernel.hfa> 2 #include <thread.hfa> 3 #include <time.hfa> 4 5 #define __kick_rate 550000ul 6 #include "long_tests.hfa" 4 7 5 8 #ifndef PREEMPTION_RATE … … 11 14 } 12 15 13 #ifdef LONG_TEST16 #ifdef TEST_LONG 14 17 static const unsigned long N = 9_750_000ul; 15 18 #else … … 20 23 21 24 void main(worker_t & this) { 22 for(int i = 0; i < N; i++) {25 for(int i = 0; TEST(i < N); i++) { 23 26 yield(); 27 KICK_WATCHDOG; 24 28 } 25 29 }
Note:
See TracChangeset
for help on using the changeset viewer.