Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/schedint/cfa2.cfa

    r26fd986 r2316525  
    77
    88volatile int go = 0;
    9 
    109condition c;
    1110monitor M {} m1, m2;
     
    1413        signal( c );
    1514}
     15
    1616void __attribute__((noinline)) wait( M & mutex p1, M & mutex p2 ) {
    1717        go = 1;
     
    1919                wait( c );
    2020        }
     21        go = 0;
    2122}
    2223
    2324thread T {};
    2425void main( T & ) {
    25         while ( go == 0 ) { yield(); } // waiter must start first
     26        while ( go == 0 ) { yield(); }
    2627        BENCH(
    27                 for ( times ) { call( m1, m2 ); },
     28                while ( go == 1 ) { call( m1, m2 ); },
    2829                result
    2930        )
Note: See TracChangeset for help on using the changeset viewer.