trunk/src/osd/modules/sync/work_osd.c
| r242730 | r242731 | |
| 267 | 267 | allocthreadnum = queue->threads + 1; |
| 268 | 268 | else |
| 269 | 269 | allocthreadnum = queue->threads; |
| 270 | | |
| 270 | #if 0 |
| 271 | // tools like chdman are not linked with osd_printf_* |
| 271 | 272 | 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); |
| 272 | | |
| 273 | #endif |
| 273 | 274 | queue->thread = (work_thread_info *)osd_malloc_array(allocthreadnum * sizeof(queue->thread[0])); |
| 274 | 275 | if (queue->thread == NULL) |
| 275 | 276 | goto error; |