diff options
| author | Mikhail Burakov <mburakov@mailbox.org> | 2023-09-04 05:27:42 +0200 |
|---|---|---|
| committer | Mikhail Burakov <mburakov@mailbox.org> | 2023-09-04 05:27:42 +0200 |
| commit | 3e001b02461af36d7068fe1bffdfda7273d2f3b9 (patch) | |
| tree | 8f6adfbecb7fbe7b078a41e2cbf47185a84e2c16 | |
| parent | c5334a46523b9ac959c002fbc23a25eeccf63599 (diff) | |
Fix function signature in thread pool
| -rw-r--r-- | thread_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
