- File:
-
- 1 edited
-
src/tests/preempt_longrun/enter3.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/enter3.c
rb9da9585 r7bdcac1 3 3 #include <thread> 4 4 #include <time> 5 6 #include "long_tests.h" 5 7 6 8 #ifndef PREEMPTION_RATE … … 18 20 mon_t mon1, mon2, mon3; 19 21 20 void foo( mon_t & mutex a, mon_t & mutex b, mon_t & mutex c ) {} 22 void foo( mon_t & mutex a, mon_t & mutex b, mon_t & mutex c ) { 23 KICK_WATCHDOG; 24 } 21 25 22 26 thread worker_t {}; 23 27 24 28 void main( worker_t & this ) { 25 for( unsigned long i = 0; i < N; i++ ) {29 for( unsigned long i = 0; TEST(i < N); i++ ) { 26 30 foo( mon1, mon2, mon3 ); 27 31 }
Note:
See TracChangeset
for help on using the changeset viewer.