Changeset b067d9b for longrun_tests/enter.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/enter.cfa (moved) (moved from src/tests/preempt_longrun/enter.c ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
longrun_tests/enter.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 … … 15 18 16 19 monitor mon_t {}; 20 void foo( mon_t & mutex this ) { 21 KICK_WATCHDOG; 22 } 17 23 18 24 mon_t mon; 19 20 void foo( mon_t & mutex this ) {}21 22 25 thread worker_t {}; 23 24 26 void main( worker_t & this ) { 25 for( unsigned long i = 0; i < N; i++ ) {27 for( unsigned long i = 0; TEST(i < N); i++ ) { 26 28 foo( mon ); 27 29 } 28 }29 30 extern "C" {31 static worker_t * workers;32 30 } 33 31 … … 36 34 { 37 35 worker_t w[7]; 38 workers = w;39 36 } 40 37 }
Note:
See TracChangeset
for help on using the changeset viewer.