diff options
| author | gingerBill <bill@gingerbill.org> | 2021-11-15 17:26:01 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-11-15 17:26:01 +0000 |
| commit | e814a3693f9efbdd00113de4dd5937acd97bc486 (patch) | |
| tree | ff0534f9609fb8b5726c0933027db9963bb469e4 /src/thread_pool.cpp | |
| parent | f55fc4cd08dba25730fa1c74d31611cf27ef2155 (diff) | |
Improve usage of `file_id`
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; } |