Changeset 70969f8 for src/tests/concurrent
- Timestamp:
- Mar 8, 2018, 12:56:02 PM (7 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:
- 9d6f011, b2fe1c9
- Parents:
- e61de5b
- Location:
- src/tests/concurrent
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/concurrent/coroutineYield.c
re61de5b r70969f8 3 3 #include <stdlib> 4 4 #include <thread> 5 6 #ifdef LONG_TEST 7 static const unsigned long N = 600_000ul; 8 #else 9 static const unsigned long N = 1_000ul; 10 #endif 5 11 6 12 coroutine Coroutine {}; … … 18 24 int main(int argc, char* argv[]) { 19 25 Coroutine c; 20 for(int i = 0; i < 1_000; i++) {26 for(int i = 0; i < N; i++) { 21 27 sout | "Thread 1" | endl; 22 28 resume(c); -
src/tests/concurrent/signal/block.c
re61de5b r70969f8 15 15 #include <time.h> 16 16 17 #ifdef LONG_TEST 18 static const unsigned long N = 150_000ul; 19 #else 17 20 static const unsigned long N = 5_000ul; 21 #endif 18 22 19 23 #ifndef PREEMPTION_RATE -
src/tests/concurrent/signal/disjoint.c
re61de5b r70969f8 6 6 #include <time.h> 7 7 8 #ifdef LONG_TEST 9 static const unsigned long N = 300_000ul; 10 #else 8 11 static const unsigned long N = 10_000ul; 12 #endif 9 13 10 14 #ifndef PREEMPTION_RATE -
src/tests/concurrent/signal/wait.c
re61de5b r70969f8 13 13 #include <time.h> 14 14 15 #ifdef LONG_TEST 16 static const unsigned long N = 375_000ul; 17 #else 15 18 static const unsigned long N = 2_500ul; 19 #endif 16 20 17 21 #ifndef PREEMPTION_RATE
Note: See TracChangeset
for help on using the changeset viewer.