Changes in benchmark/readyQ/cycle.cpp [ebb6158:56ac392]
- File:
-
- 1 edited
-
benchmark/readyQ/cycle.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/cycle.cpp
rebb6158 r56ac392 41 41 Fibre * threads[tthreads]; 42 42 Partner thddata[tthreads]; 43 for( unsignedi = 0; i < tthreads; i++) {43 for(int i = 0; i < tthreads; i++) { 44 44 unsigned pi = (i + nthreads) % tthreads; 45 45 thddata[i].next = &thddata[pi].self; 46 46 } 47 for( unsignedi = 0; i < tthreads; i++) {47 for(int i = 0; i < tthreads; i++) { 48 48 threads[i] = new Fibre( reinterpret_cast<void (*)(void *)>(partner_main), &thddata[i] ); 49 49 } … … 53 53 start = timeHiRes(); 54 54 55 for( unsignedi = 0; i < nthreads; i++) {55 for(int i = 0; i < nthreads; i++) { 56 56 thddata[i].self.post(); 57 57 } … … 62 62 printf("\nDone\n"); 63 63 64 for( unsignedi = 0; i < tthreads; i++) {64 for(int i = 0; i < tthreads; i++) { 65 65 thddata[i].self.post(); 66 66 fibre_join( threads[i], nullptr );
Note:
See TracChangeset
for help on using the changeset viewer.