C实现的线程池 threadpool
jopen
12年前
threadpool 是一个简单的 C 语言实现的线程池。
实现内容如下: * Works with pthreads only, but API is intentionally opaque to allow other implementations (Windows for instance). * Starts all threads on creation of the thread pool. * Reserves one task for signaling the queue is full. * Stops and joins all worker threads on destroy.