Changeset 427854b for tests/concurrent
- Timestamp:
- Mar 2, 2020, 4:59:27 PM (3 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- dfa4360
- Parents:
- 37cdd97
- Location:
- tests/concurrent
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/coroutineThen.cfa
r37cdd97 r427854b 49 49 50 50 void main(Coroutine& this) { 51 suspend ();51 suspend; 52 52 for(int i = 0; TEST(i < N); i++) { 53 53 54 54 print("C - Suspending"); 55 void publish(){55 suspend{ 56 56 print("C - Publishing"); 57 57 assert(!the_cor); 58 58 store( this ); 59 59 } 60 suspend_then(publish);61 60 assert(!the_cor); 62 61 print("Coroutine 2"); … … 65 64 } 66 65 done = true; 67 suspend ();66 suspend; 68 67 } 69 68 -
tests/concurrent/coroutineYield.cfa
r37cdd97 r427854b 33 33 sout | "Coroutine 2"; 34 34 #endif 35 suspend ();35 suspend; 36 36 } 37 37 }
Note: See TracChangeset
for help on using the changeset viewer.