Changes in benchmark/readyQ/locality.cpp [1f950c3b:56ac392]
- File:
-
- 1 edited
-
benchmark/readyQ/locality.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/locality.cpp
r1f950c3b r56ac392 217 217 { 218 218 FibreInit(1, nprocs); 219 MyData * * data_arrays = new MyData *[nthreads]();219 MyData * data_arrays[nthreads]; 220 220 for(size_t i = 0; i < nthreads; i++) { 221 221 data_arrays[i] = new MyData( i, wsize ); … … 228 228 229 229 threads_left = nthreads - nspots; 230 Fibre * * threads = new Fibre *[nthreads]();231 MyCtx * * thddata = new MyCtx *[nthreads]();230 Fibre * threads[nthreads]; 231 MyCtx * thddata[nthreads]; 232 232 { 233 233 for(size_t i = 0; i < nthreads; i++) { … … 240 240 i 241 241 ); 242 threads[i] = new Fibre(); 243 threads[i]->run( reinterpret_cast<void (*)(MyCtx*)>(thread_main), thddata[i] ); 242 threads[i] = new Fibre( reinterpret_cast<void (*)(void *)>(thread_main), thddata[i] ); 244 243 } 245 244 … … 268 267 delete( data_arrays[i] ); 269 268 } 270 delete[](data_arrays);271 269 272 270 for(size_t i = 0; i < nspots; i++) { 273 271 delete( spots[i] ); 274 272 } 275 276 delete[](threads);277 delete[](thddata);278 273 } 279 274
Note:
See TracChangeset
for help on using the changeset viewer.