Changeset b067d9b for longrun_tests/enter3.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/enter3.cfa (moved) (moved from src/tests/preempt_longrun/enter3.c ) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
longrun_tests/enter3.cfa
r7951100 rb067d9b 1 #include <kernel> 2 #include <monitor> 3 #include <thread> 4 #include <time> 1 #include <kernel.hfa> 2 #include <monitor.hfa> 3 #include <thread.hfa> 4 #include <time.hfa> 5 6 #define __kick_rate 75000ul 7 #include "long_tests.hfa" 5 8 6 9 #ifndef PREEMPTION_RATE … … 18 21 mon_t mon1, mon2, mon3; 19 22 20 void foo( mon_t & mutex a, mon_t & mutex b, mon_t & mutex c ) {} 23 void foo( mon_t & mutex a, mon_t & mutex b, mon_t & mutex c ) { 24 KICK_WATCHDOG; 25 } 21 26 22 27 thread worker_t {}; 23 28 24 29 void main( worker_t & this ) { 25 for( unsigned long i = 0; i < N; i++ ) {30 for( unsigned long i = 0; TEST(i < N); i++ ) { 26 31 foo( mon1, mon2, mon3 ); 27 32 }
Note:
See TracChangeset
for help on using the changeset viewer.