Argument parsing
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#ifndef INCLUDED_THREAD_POOL_H
|
||||
#define INCLUDED_THREAD_POOL_H
|
||||
|
||||
typedef struct _ThreadPool ThreadPool;
|
||||
typedef void (*Task)(void *);
|
||||
|
||||
ThreadPool *make_thread_pool(int parallelism);
|
||||
|
||||
void destroy_thread_pool(ThreadPool *pool);
|
||||
|
||||
void thread_pool_enqueue(Task task, void *arg);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user