Changes in benchmark/schedint/cfa2.cfa [26fd986:2316525]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/schedint/cfa2.cfa
r26fd986 r2316525 7 7 8 8 volatile int go = 0; 9 10 9 condition c; 11 10 monitor M {} m1, m2; … … 14 13 signal( c ); 15 14 } 15 16 16 void __attribute__((noinline)) wait( M & mutex p1, M & mutex p2 ) { 17 17 go = 1; … … 19 19 wait( c ); 20 20 } 21 go = 0; 21 22 } 22 23 23 24 thread T {}; 24 25 void main( T & ) { 25 while ( go == 0 ) { yield(); } // waiter must start first26 while ( go == 0 ) { yield(); } 26 27 BENCH( 27 for ( times) { call( m1, m2 ); },28 while ( go == 1 ) { call( m1, m2 ); }, 28 29 result 29 30 )
Note: See TracChangeset
for help on using the changeset viewer.