- Timestamp:
- Jul 11, 2023, 10:47:49 AM (18 months ago)
- Branches:
- master
- Children:
- b93bf85, ffac259
- Parents:
- c54ca97
- Location:
- tests/exceptions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/exceptions/.expect/pingpong_nonlocal.txt
rc54ca97 r4c8ce47 1 1 main start 2 ping start3 pong start4 2 pong catchResume 0 0 5 3 ping catchResume 0 1 … … 103 101 ping catchResume 97 99 104 102 pong catch 98 100 105 pong end106 103 ping catch 99 101 107 ping end108 104 main end -
tests/exceptions/pingpong_nonlocal.cfa
rc54ca97 r4c8ce47 3 3 #include <fstream.hfa> 4 4 #include <mutex_stmt.hfa> 5 #include <locks.hfa> 5 6 6 7 exception num_ping_pongs { int num; }; … … 13 14 Ping_Pong & partner; 14 15 }; 16 17 semaphore sync{0}; 15 18 16 19 void ?{}( Ping_Pong & this, char * name ) with( this ) { … … 27 30 resumeAt( partner, except ); 28 31 } 29 mutex( sout ) sout | name | "start";32 // mutex( sout ) sout | name | "start"; // removed to get rid of output race 30 33 try { 31 34 for () { … … 42 45 } 43 46 } 44 mutex( sout ) sout | name | "end";47 // mutex( sout ) sout | name | "end"; // removed to get rid of output race 45 48 } 46 49
Note: See TracChangeset
for help on using the changeset viewer.