- File:
-
- 1 edited
-
src/tests/preempt_longrun/enter.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/enter.c
r85b1deb ref952d7 3 3 #include <thread> 4 4 #include <time> 5 6 #define __kick_rate 75000ul 7 #include "long_tests.h" 5 8 6 9 #ifndef PREEMPTION_RATE … … 15 18 16 19 monitor mon_t {}; 17 void foo( mon_t & mutex this ) {} 20 void foo( mon_t & mutex this ) { 21 KICK_WATCHDOG; 22 } 18 23 19 24 mon_t mon; 20 25 thread worker_t {}; 21 26 void main( worker_t & this ) { 22 for( unsigned long i = 0; i < N; i++ ) {27 for( unsigned long i = 0; TEST(i < N); i++ ) { 23 28 foo( mon ); 24 29 }
Note:
See TracChangeset
for help on using the changeset viewer.