Changeset 7bdcac1 for src/tests/preempt_longrun/enter.c
- Timestamp:
- Jun 11, 2018, 10:16:04 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 3fc59bdb
- Parents:
- 85b1deb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/enter.c
r85b1deb r7bdcac1 3 3 #include <thread> 4 4 #include <time> 5 6 #include "long_tests.h" 5 7 6 8 #ifndef PREEMPTION_RATE … … 15 17 16 18 monitor mon_t {}; 17 void foo( mon_t & mutex this ) {} 19 void foo( mon_t & mutex this ) { 20 KICK_WATCHDOG; 21 } 18 22 19 23 mon_t mon; 20 24 thread worker_t {}; 21 25 void main( worker_t & this ) { 22 for( unsigned long i = 0; i < N; i++ ) {26 for( unsigned long i = 0; TEST(i < N); i++ ) { 23 27 foo( mon ); 24 28 }
Note: See TracChangeset
for help on using the changeset viewer.