Changeset 8fe35be for benchmark/readyQ/cycle.cfa
- Timestamp:
- Jul 25, 2022, 12:47:05 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
- Children:
- 1f950c3b
- Parents:
- 970fa54
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/cycle.cfa
r970fa54 r8fe35be 52 52 { 53 53 threads_left = tthreads; 54 BThrd * threads[tthreads];55 Partner thddata[tthreads];54 BThrd ** threads = alloc(tthreads); 55 Partner * thddata = alloc(tthreads); 56 56 for(i; tthreads) { 57 (thddata[pi]){}; 57 58 unsigned pi = (i + nthreads) % tthreads; 58 59 thddata[i].next = &thddata[pi].self; … … 83 84 delete(threads[i]); 84 85 } 86 free(threads); 87 free(thddata); 85 88 } 86 89
Note: See TracChangeset
for help on using the changeset viewer.