C-Thread-Pool icon indicating copy to clipboard operation
C-Thread-Pool copied to clipboard

A minimal but powerful thread pool in ANSI C

Results 47 C-Thread-Pool issues
Sort by recently updated
recently updated
newest added

Add error handling to possible failure points by returning an error code, and document any that we use for better control by the calling application.

enhancement

[The variable "threads_on_hold"](https://github.com/Pithikos/C-Thread-Pool/blob/18142eee719734caad35441964f95cc39cf31de7/thpool.c#L32) should [use the data type "sig_atomic_t"](https://www.securecoding.cert.org/confluence/display/c/SIG31-C.+Do+not+access+shared+objects+in+signal+handlers), shouldn't it?

Would you like to add more error handling for return values from functions like the following? - [pthread_create](http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_create.html) ⇒ [thread_init](https://github.com/Pithikos/C-Thread-Pool/blob/18142eee719734caad35441964f95cc39cf31de7/thpool.c#L292) - [pthread_mutex_init](http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutex_init.html) ⇒ [thpool_init](https://github.com/Pithikos/C-Thread-Pool/blob/18142eee719734caad35441964f95cc39cf31de7/thpool.c#L115)

enhancement

Thanks for the very useful library! I needed to pass more than a single integer to the task, this PR demonstrates passing a struct. I also updated gitignore to avoid...

Hello! I have a simple question: We have the function void thpool_wait(threadpool); that wait for all queued jobs to finish, I was wondering if there was the possibility to wait...

I am trying to make a cross platform threadpool library in c and I came across this library and I started to examine it but I don't get it how...