Changeset b4107c8 for benchmark/schedext/cfa1.cfa
- Timestamp:
- Jan 7, 2020, 3:50:56 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 580c11b
- Parents:
- 846c026
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/schedext/cfa1.cfa
r846c026 rb4107c8 6 6 #include "bench.h" 7 7 8 int argc;9 char** argv;10 8 volatile int go = 0; 11 9 … … 17 15 int __attribute__((noinline)) wait( M & mutex a1 ) { 18 16 go = 1; 19 BENCH( 20 for ( i; n ) { 21 waitfor(call, a1); 22 }, 23 result 24 ) 25 26 printf("%g\n", result); 17 for ( i; times ) { 18 waitfor(call, a1); 19 } 27 20 go = 0; 28 21 return 0; … … 33 26 void main( T & ) { 34 27 while(go == 0) { yield(); } 35 while(go == 1) { call(m1); } 36 28 BENCH( 29 while(go == 1) { call(m1); }, 30 result 31 ) 32 printf( "%g\n", result ); 37 33 } 38 34 39 int main(__attribute__((unused)) int argc, __attribute__((unused)) char* argv[]) { 35 int main( int argc, char * argv[] ) { 36 BENCH_START() 40 37 T t; 41 return wait( m1);38 return wait( m1 ); 42 39 } 40 41 // Local Variables: // 42 // tab-width: 4 // 43 // End: //
Note: See TracChangeset
for help on using the changeset viewer.