aboutsummaryrefslogtreecommitdiff
path: root/src/thread_pool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread_pool.cpp')
-rw-r--r--src/thread_pool.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/thread_pool.cpp b/src/thread_pool.cpp
index 57ed5e3c5..522b96d09 100644
--- a/src/thread_pool.cpp
+++ b/src/thread_pool.cpp
@@ -23,9 +23,6 @@ struct ThreadPool {
};
gb_internal void thread_pool_init(ThreadPool *pool, gbAllocator const &a, isize thread_count, char const *worker_name) {
- mutex_init(&pool->task_lock);
- condition_init(&pool->tasks_available);
-
pool->allocator = a;
slice_init(&pool->threads, a, thread_count + 1);
@@ -54,8 +51,6 @@ gb_internal void thread_pool_destroy(ThreadPool *pool) {
}
gb_free(pool->allocator, pool->threads.data);
- mutex_destroy(&pool->task_lock);
- condition_destroy(&pool->tasks_available);
}
void thread_pool_queue_push(Thread *thread, WorkerTask task) {