From 3e001b02461af36d7068fe1bffdfda7273d2f3b9 Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Mon, 4 Sep 2023 05:27:42 +0200 Subject: Fix function signature in thread pool --- thread_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thread_pool.c b/thread_pool.c index 0e04439..57534aa 100644 --- a/thread_pool.c +++ b/thread_pool.c @@ -86,7 +86,7 @@ static int ThreadProc(void* arg) { return 0; } -int ThreadPool_Create(struct ThreadPool* thread_pool, size_t threads_count) { +bool ThreadPoolCreate(struct ThreadPool* thread_pool, size_t threads_count) { atomic_init(&thread_pool->running, 1); thread_pool->threads = malloc(threads_count * sizeof(thrd_t)); if (!thread_pool->threads) return false; -- cgit v1.2.3