trunk/src/osd/modules/sync/work_osd.c
| r242771 | r242772 | |
| 223 | 223 | allocthreadnum = queue->threads + 1; |
| 224 | 224 | else |
| 225 | 225 | allocthreadnum = queue->threads; |
| 226 | | #if 0 |
| 227 | | // tools like chdman are not linked with osd_printf_* |
| 228 | | osd_printf_verbose("osdprocs: %d effecprocs: %d threads: %d allocthreads: %d osdthreads: %d maxthreads: %d queuethreads: %d\n", osd_num_processors, numprocs, threadnum, allocthreadnum, osdthreadnum, WORK_MAX_THREADS, queue->threads); |
| 226 | |
| 227 | #if KEEP_STATISTICS |
| 228 | printf("osdprocs: %d effecprocs: %d threads: %d allocthreads: %d osdthreads: %d maxthreads: %d queuethreads: %d\n", osd_num_processors, numprocs, threadnum, allocthreadnum, osdthreadnum, WORK_MAX_THREADS, queue->threads); |
| 229 | 229 | #endif |
| 230 | |
| 230 | 231 | queue->thread = (work_thread_info *)osd_malloc_array(allocthreadnum * sizeof(queue->thread[0])); |
| 231 | 232 | if (queue->thread == NULL) |
| 232 | 233 | goto error; |
| r242771 | r242772 | |
| 382 | 383 | allocthreadnum = queue->threads; |
| 383 | 384 | |
| 384 | 385 | // output per-thread statistics |
| 385 | | for (threadnum = 0; threadnum <= allocthreadnum; threadnum++) |
| 386 | for (threadnum = 0; threadnum < allocthreadnum; threadnum++) |
| 386 | 387 | { |
| 387 | 388 | work_thread_info *thread = &queue->thread[threadnum]; |
| 388 | 389 | osd_ticks_t total = thread->runtime + thread->waittime + thread->spintime; |