Changeset 28f3a19 for src/tests/preempt_longrun/enter.c
- Timestamp:
- Jun 27, 2018, 3:28:41 PM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- b21c77a
- Parents:
- 0182bfa (diff), 63238a4 (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 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/enter.c
r0182bfa r28f3a19 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 {}; 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.