Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/schedext/cfa4.cfa

    r2316525 rcca568e  
    88volatile int go = 0;
    99
    10 monitor M {} m1, m2, m3, m4;
     10monitor M {};
     11M m1, m2, m3, m4;
    1112
    12 void __attribute__((noinline)) call( M & mutex p1, M & mutex p2, M & mutex p3, M & mutex p4 ) {}
     13void __attribute__((noinline)) call( M & mutex a1, M & mutex a2, M & mutex a3, M & mutex a4 ) {}
    1314
    14 void __attribute__((noinline)) wait( M & mutex p1, M & mutex p2, M & mutex p3, M & mutex p4 ) {
     15int  __attribute__((noinline)) wait( M & mutex a1, M & mutex a2, M & mutex a3, M & mutex a4 ) {
    1516        go = 1;
    16         for ( times ) {
    17                 waitfor( call : p1, p2, p3, p4 );
     17        for ( i; times ) {
     18                waitfor( call : a1, a2, a3, a4 );
    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, m3, m4 ); },
     29                while(go == 1) { call(m1, m2, m3, m4); },
    2730                result
    2831        )
     
    3336        BENCH_START()
    3437        T t;
    35         wait( m1, m2, m3, m4 );
     38        return wait( m1, m2, m3, m4 );
    3639}
    3740
Note: See TracChangeset for help on using the changeset viewer.