1#ifndef POSER_CORE_THREADPOOL_H
2#define POSER_CORE_THREADPOOL_H
46 ATTR_NONNULL((1)) ATTR_RETNONNULL;
57 CMETHOD ATTR_RETNONNULL ATTR_PURE;
89PSC_ThreadJob_canceled(
void);
98PSC_ThreadOpts_init(
int defThreads);
106PSC_ThreadOpts_fixedThreads(
int n);
117PSC_ThreadOpts_threadsPerCpu(
int n);
125PSC_ThreadOpts_maxThreads(
int n);
133PSC_ThreadOpts_fixedQueue(
int n);
143PSC_ThreadOpts_queuePerThread(
int n);
151PSC_ThreadOpts_maxQueue(
int n);
159PSC_ThreadOpts_minQueue(
int n);
169PSC_ThreadPool_init(
void);
177PSC_ThreadPool_active(
void);
212PSC_ThreadPool_done(
void);
A job to be executed on a worker thread.
PSC_ThreadJob * PSC_ThreadJob_create(PSC_ThreadProc proc, void *arg, int timeoutTicks)
Create a new thread job.
void(* PSC_ThreadProc)(void *arg)
A function to run on a worker thread.
Definition: threadpool.h:33