Changeset c16cc99 for tests


Ignore:
Timestamp:
Jul 11, 2023, 2:29:56 PM (12 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
bdbb448
Parents:
d829c6d (diff), ffac259 (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/pingpong_nonlocal.cfa

    rd829c6d rc16cc99  
    33#include <fstream.hfa>
    44#include <mutex_stmt.hfa>
    5 #include <locks.hfa>
    65
    76exception num_ping_pongs { int num; };
     
    1514};
    1615
    17 semaphore sync{0};
    18 
    1916void ?{}( Ping_Pong & this, char * name ) with( this ) {
    2017        this.name = name;
     
    2320}
    2421
    25 int numtimes = 100;
     22void main( Ping_Pong & this ) with( this ) {
     23        enum { numtimes = 100 };
    2624
    27 void main( Ping_Pong & this ) with( this ) {
    2825        void inc_resume_at( int value ) {
    2926                except.num = value + 1;
    3027                resumeAt( partner, except );
    3128        }
    32         // mutex( sout ) sout | name | "start"; // removed to get rid of output race
    3329        try {
    3430                for () {
     
    4541                }
    4642        }
    47         // mutex( sout ) sout | name | "end"; // removed to get rid of output race
    4843}
    4944
Note: See TracChangeset for help on using the changeset viewer.