threadpool icon indicating copy to clipboard operation
threadpool copied to clipboard

A simple C Thread pool implementation

Results 5 threadpool issues
Sort by recently updated
recently updated
newest added

Take care that the manpage of pthread_mutex_destroy says: "Attempting to destroy a locked mutex, or ...., results in undefined behavior." But this is what the code is doing in threadpool_free().

Where implements "Reserves one task for signaling the queue is full."? I can't found it. Is it unnecessary?

https://linux.die.net/man/3/pthread_mutex_destroy ``` Attempting to destroy a locked mutex results in undefined behavior. ``` Bug found with ThreadSanitizer

- Add cmake support - Update Readme - Fix typo from thrdtest to thirdtest

It is easier to extend and add new test cases with the rewritten build system.