diff options
Diffstat (limited to 'src/thread_pool.cpp')
| -rw-r--r-- | src/thread_pool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread_pool.cpp b/src/thread_pool.cpp index fc65110fe..727cdcdda 100644 --- a/src/thread_pool.cpp +++ b/src/thread_pool.cpp @@ -95,7 +95,7 @@ bool thread_pool_add_task(ThreadPool *pool, WorkerTaskProc *proc, void *data) { thread_pool_queue_push(pool, task); GB_ASSERT(pool->ready >= 0); pool->ready++; - condition_signal(&pool->task_cond); + condition_broadcast(&pool->task_cond); mutex_unlock(&pool->mutex); return true; } |