aboutsummaryrefslogtreecommitdiff
path: root/src/thread_pool.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-01 16:19:21 +0000
committergingerBill <bill@gingerbill.org>2023-01-01 16:19:21 +0000
commit5c519f0e8dada6b15166a257d22a07f2316a394f (patch)
treeaa5135b744aa618ef8d10828e87e585e994e8bb3 /src/thread_pool.cpp
parent74e6d9144e9a0afd9c29b0edec8c6ed2960efde4 (diff)
Remove the synchronization primitive init/destroy calls
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) {