Changes in benchmark/mutex/cfa1.cfa [dc33b5b:2316525]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/mutex/cfa1.cfa
rdc33b5b r2316525 4 4 #include "bench.h" 5 5 6 monitor M {} ;7 void __attribute__((noinline)) call( M & mutex m) {}6 monitor M {} m1; 7 void __attribute__((noinline)) call( M & mutex p1 ) {} 8 8 9 int main( int argc, char* argv[]) {10 M m;9 int main( int argc, char * argv[] ) { 10 BENCH_START() 11 11 BENCH( 12 for ( i; n) {13 call( m);12 for ( times ) { 13 call( m1 ); 14 14 }, 15 15 result 16 16 ) 17 printf( "%g\n", result ); 18 } 17 19 18 printf("%g\n", result); 19 } 20 // Local Variables: // 21 // tab-width: 4 // 22 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.