#ifndef __THREADPOOL_H__ #define __THREADPOOL_H__ #include typedef struct _virThreadPool virThreadPool; typedef virThreadPool *virThreadPoolPtr; typedef void (*virThreadPoolJobFunc)(void *jobdata, void *opaque); virThreadPoolPtr virThreadPoolNew(size_t minWorkers, size_t maxWorkers, virThreadPoolJobFunc func, void *opaque); void virThreadPoolShutdown(virThreadPoolPtr pool); void virThreadPoolFree(virThreadPoolPtr pool); int virThreadPoolSendJob(virThreadPoolPtr pool, void *jobdata); #endif