- Timestamp:
- Jul 25, 2022, 1:47:25 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- ffec1bf
- Parents:
- 8fe35be
- Location:
- benchmark/readyQ
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/cycle.cfa
r8fe35be r1f950c3b 55 55 Partner * thddata = alloc(tthreads); 56 56 for(i; tthreads) { 57 (thddata[ pi]){};57 (thddata[i]){}; 58 58 unsigned pi = (i + nthreads) % tthreads; 59 59 thddata[i].next = &thddata[pi].self; -
benchmark/readyQ/cycle.cpp
r8fe35be r1f950c3b 39 39 { 40 40 threads_left = tthreads; 41 Fibre * threads = new Fibre *[tthreads]();42 Partner thddata = new Partner[tthreads]();41 Fibre ** threads = new Fibre *[tthreads](); 42 Partner* thddata = new Partner[tthreads](); 43 43 for(unsigned i = 0; i < tthreads; i++) { 44 44 unsigned pi = (i + nthreads) % tthreads; -
benchmark/readyQ/locality.cpp
r8fe35be r1f950c3b 240 240 i 241 241 ); 242 threads[i] = new Fibre( reinterpret_cast<void (*)(void *)>(thread_main), thddata[i] ); 242 threads[i] = new Fibre(); 243 threads[i]->run( reinterpret_cast<void (*)(MyCtx*)>(thread_main), thddata[i] ); 243 244 } 244 245
Note: See TracChangeset
for help on using the changeset viewer.