Changeset b1e63ac5 for src/tests/sched-int-disjoint.c
- Timestamp:
- Jul 4, 2017, 9:40:16 AM (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:
- 208e5be
- Parents:
- 9c951e3 (diff), f7cb0bc (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
-
src/tests/sched-int-disjoint.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/tests/sched-int-disjoint.c
r9c951e3 rb1e63ac5 4 4 #include <thread> 5 5 6 #ifndef N 6 7 #define N 100_000 8 #endif 7 9 8 10 enum state_t { WAIT, SIGNAL, BARGE }; … … 78 80 signal( &cond, a, &data ); 79 81 80 int pauses = (unsigned)rand48() % 10; 81 for(int i = 0; i < pauses; i++) { 82 yield(); 83 } 82 yield( (unsigned)rand48() % 10 ); 84 83 85 84 //This is technically a mutual exclusion violation but the mutex monitor protects us
Note:
See TracChangeset
for help on using the changeset viewer.