28 #define THREADPOOL_MAX_RINGBUF_SIZE2 30
bool Threadpool_Shutdown(struct threadpool *t, bool kill_all)
Notify the threadpool's threads that the system is going to shut down soon.
void( threadpool_task_cleanup_cb)(void *udata)
Callback to clean up a cancelled task's data, with the arbitrary user-supplied pointer that would hav...
threadpool_task_cb * task
Configuration for thread pool.
bool Threadpool_Schedule(struct threadpool *t, struct threadpool_task *task, size_t *pushback)
Schedule a task in the threadpool.
void( threadpool_task_cb)(void *udata)
Callback for a task, with an arbitrary user-supplied pointer.
Internal threadpool state.
void Threadpool_Stats(struct threadpool *t, struct threadpool_info *ti)
If TI is non-NULL, fill out some statistics about the operating state of the thread pool...
uint8_t task_ringbuf_size2
Statistics about the current state of the threadpool.
threadpool_task_cleanup_cb * cleanup
void Threadpool_Free(struct threadpool *t)
Free a threadpool.
struct threadpool * Threadpool_Init(struct threadpool_config *cfg)
Initialize a threadpool, according to a config.