Remove need for semaphore in Thread

This commit is contained in:
gingerBill
2022-12-20 14:07:14 +00:00
parent 0edda2bea7
commit a0e3a99dd1
2 changed files with 15 additions and 33 deletions

View File

@@ -45,12 +45,7 @@ gb_internal void thread_pool_init(ThreadPool *pool, gbAllocator const &a, isize
slice_init(&pool->threads, a, thread_count);
for_array(i, pool->threads) {
Thread *t = &pool->threads[i];
thread_init(t);
}
for_array(i, pool->threads) {
Thread *t = &pool->threads[i];
thread_start(t, thread_pool_thread_proc, pool);
thread_init_and_start(t, thread_pool_thread_proc, pool);
}
}