Changes in / [c16cc99:d829c6d]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/pingpong_nonlocal.cfa

    rc16cc99 rd829c6d  
    33#include <fstream.hfa>
    44#include <mutex_stmt.hfa>
     5#include <locks.hfa>
    56
    67exception num_ping_pongs { int num; };
     
    1415};
    1516
     17semaphore sync{0};
     18
    1619void ?{}( Ping_Pong & this, char * name ) with( this ) {
    1720        this.name = name;
     
    2023}
    2124
     25int numtimes = 100;
     26
    2227void main( Ping_Pong & this ) with( this ) {
    23         enum { numtimes = 100 };
    24 
    2528        void inc_resume_at( int value ) {
    2629                except.num = value + 1;
    2730                resumeAt( partner, except );
    2831        }
     32        // mutex( sout ) sout | name | "start"; // removed to get rid of output race
    2933        try {
    3034                for () {
     
    4145                }
    4246        }
     47        // mutex( sout ) sout | name | "end"; // removed to get rid of output race
    4348}
    4449
Note: See TracChangeset for help on using the changeset viewer.