Changeset 9d6f011 for src/tests/concurrent/coroutineYield.c
- Timestamp:
- Mar 8, 2018, 3:38:44 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:
- 037c072
- Parents:
- 28bc8c8 (diff), 70969f8 (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/concurrent/coroutineYield.c
r28bc8c8 r9d6f011 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);
Note: See TracChangeset
for help on using the changeset viewer.