Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/schedext/cfa2.cfa

    r2316525 rcca568e  
    88volatile int go = 0;
    99
    10 monitor M {} m1, m2;
     10monitor M {};
     11M m1, m2;
    1112
    12 void __attribute__((noinline)) call( M & mutex p1, M & mutex p2 ) {}
     13void __attribute__((noinline)) call( M & mutex a1, M & mutex a2 ) {}
    1314
    14 void __attribute__((noinline)) wait( M & mutex p1, M & mutex p2 ) {
     15int  __attribute__((noinline)) wait( M & mutex a1, M & mutex a2 ) {
    1516        go = 1;
    16         for ( times ) {
    17                 waitfor( call : p1, p2 );
     17        for ( i; times ) {
     18                waitfor(call : a1, a2);
    1819        }
    1920        go = 0;
     21        return 0;
    2022}
    2123
    2224thread T {};
     25void ^?{}( T & mutex this ) {}
    2326void main( T & ) {
    24         while( go == 0 ) { yield(); }
     27        while(go == 0) { yield(); }
    2528        BENCH(
    26                 while ( go == 1 ) { call( m1, m2 ); },
     29                while(go == 1) { call(m1, m2); },
    2730                result
    2831        )
     
    3336        BENCH_START()
    3437        T t;
    35         wait( m1, m2 );
     38        return wait( m1, m2 );
    3639}
    3740
Note: See TracChangeset for help on using the changeset viewer.