Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/sched-int-disjoint.c

    r0322865c re1c1829  
    55
    66#ifndef N
    7 #define N 10_000
     7#define N 100_000
    88#endif
    99
     
    4242
    4343void main( Barger * this ) {
    44         while( !all_done ) {
     44        while( !all_done ) { 
    4545                barge( &data );
    46                 yield();
     46                yield(); 
    4747        }
    4848}
     
    5353        wait( &cond );
    5454        if( d->state != SIGNAL ) {
    55                 sout | "ERROR barging!" | endl;
     55                sout | "ERROR barging!" | endl; 
    5656        }
    5757
     
    8585        bool running = data.counter < N && data.counter > 0;
    8686        if( data.state != SIGNAL && running ) {
    87                 sout | "ERROR Eager signal" | data.state | endl;
     87                sout | "ERROR Eager signal" | data.state | endl; 
    8888        }
    8989}
     
    9292
    9393void main( Signaller * this ) {
    94         while( !all_done ) {
     94        while( !all_done ) { 
    9595                logic( &mut );
    96                 yield();
     96                yield(); 
    9797        }
    9898}
     
    111111                sout | "All waiter done" | endl;
    112112                all_done = true;
    113         }
     113        }       
    114114}
Note: See TracChangeset for help on using the changeset viewer.