Worked on runtime and threadpool

This commit is contained in:
2025-06-19 19:21:08 +01:00
commit 0be61851a4
7 changed files with 279 additions and 0 deletions

9
include/thread_pool.h Normal file
View File

@ -0,0 +1,9 @@
#pragma once
typedef struct thread_pool_t thread_pool_t;
thread_pool_t *thread_pool_create(size_t thread_count);
void thread_pool_destroy(thread_pool_t *pool);
long thread_pool_run(thread_pool_t *pool, void *(*func)(void*), void *data);
void thread_pool_join_all(thread_pool_t *pool);