- Timestamp:
- Apr 27, 2017, 2:00:30 PM (8 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, resolv-new, with_gc
- Children:
- 9c59cd4, f3fda4e
- Parents:
- 0c78741
- Location:
- src/tests
- Files:
-
- 3 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/tests/sched-int.c
r0c78741 rf80ab45 1 #include <fstream> 1 2 #include <kernel> 2 3 #include <monitor> … … 15 16 16 17 void step1( global_t * mutex this ) { 18 sout | "Step 1" | endl; 17 19 this->value = 1; 18 20 wait( &cond ); … … 22 24 if( this->value != 1) abort(); 23 25 26 sout | "Step 2" | endl; 24 27 this->value = 2; 25 28 signal( &cond ); … … 29 32 if( this->value != 2) abort(); 30 33 31 this->value = 2; 34 sout | "Step 3" | endl; 35 this->value = 3; 32 36 signal( &cond ); 33 37 }
Note: See TracChangeset
for help on using the changeset viewer.