# threadpool **Repository Path**: lu-yang/threadpool ## Basic Information - **Project Name**: threadpool - **Description**: threadpool 是一个简单的 C 语言实现的线程池 - **Primary Language**: C/C++ - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/threadpool - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-10-28 - **Last Updated**: 2021-10-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/mbrossard/threadpool.svg?branch=master)](https://travis-ci.org/mbrossard/threadpool) A simple C thread pool implementation ===================================== Currently, the implementation: * 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. Possible enhancements ===================== The API contains additional unused 'flags' parameters that would allow some additional options: * Lazy creation of threads (easy) * Reduce number of threads automatically (hard) * Unlimited queue size (medium) * Kill worker threads on destroy (hard, dangerous) * Support Windows API (medium) * Reduce locking contention (medium/hard)