diff options
Diffstat (limited to 'src/thread_pool.cpp')
| -rw-r--r-- | src/thread_pool.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/thread_pool.cpp b/src/thread_pool.cpp index eca4d37ab..ba150bb6f 100644 --- a/src/thread_pool.cpp +++ b/src/thread_pool.cpp @@ -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); } } |