mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-08 03:24:19 +00:00
Remove need for semaphore in Thread
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user