Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> --- sheep/work.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/sheep/work.c b/sheep/work.c index 8a6dce4..68f04ce 100644 --- a/sheep/work.c +++ b/sheep/work.c @@ -267,15 +267,12 @@ destroy_threads: #ifdef COMPILE_UNUSED_CODE static void exit_work_queue(struct work_queue *q) { - int i; struct worker_info *wi = container_of(q, struct worker_info, q); q->wq_state |= WQ_DEAD; pthread_cond_broadcast(&wi->pending_cond); - for (i = 0; wi->worker_thread[i] && - i < wi->nr_threads; i++) - pthread_join(wi->worker_thread[i], NULL); + pthread_join(wi->worker_thread, NULL); pthread_cond_destroy(&wi->pending_cond); pthread_mutex_destroy(&wi->pending_lock); -- 1.7.2.5 |