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