Changeset ffac259 for tests/exceptions


Ignore:
Timestamp:
Jul 11, 2023, 2:02:38 PM (18 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
c16cc99
Parents:
4c8ce47
Message:

hide numtimes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/exceptions/pingpong_nonlocal.cfa

    r4c8ce47 rffac259  
    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.