aboutsummaryrefslogtreecommitdiff
path: root/src/thread_pool.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-11-15 17:26:01 +0000
committergingerBill <bill@gingerbill.org>2021-11-15 17:26:01 +0000
commite814a3693f9efbdd00113de4dd5937acd97bc486 (patch)
treeff0534f9609fb8b5726c0933027db9963bb469e4 /src/thread_pool.cpp
parentf55fc4cd08dba25730fa1c74d31611cf27ef2155 (diff)
Improve usage of `file_id`
Diffstat (limited to 'src/thread_pool.cpp')
-rw-r--r--src/thread_pool.cpp2
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;
}