Narrow global gen_procs_mutex further

This commit is contained in:
gingerBill
2023-01-02 23:50:48 +00:00
parent fd62ee14cd
commit e10fe91eba
3 changed files with 5 additions and 7 deletions

View File

@@ -167,7 +167,7 @@ gb_internal THREAD_PROC(thread_pool_thread_proc) {
idx = (idx + 1) % cast(usize)pool->threads.count;
Thread *thread = &pool->threads.data[idx];
WorkerTask task, another_task;
WorkerTask task;
if (!thread_pool_queue_pop(thread, &task)) {
continue;
}