C-Thread-Pool
C-Thread-Pool copied to clipboard
A minimal but powerful thread pool in ANSI C
Hi, I see those two api in tests, and if I add work from client requests through TCP like below, (implemented in main thread) ` switch ... { case 1:...
if much job are added into queue, and now the threads are busy , no thread is waiting the mutex, so if the threads finish the work, it will not...
https://github.com/Pithikos/C-Thread-Pool/blob/430251cb657f82c9a94d4ed72db6f5ea2e30f5d9/thpool.c#L459
The usage shown in the readme (compiling thpool.c along with myapp.c) is fine for building applications, but fails for the case of generating the .o for my_library_component.c, which has a...
Hello, First of all, I'd like to say thank you for your library. I want to propose extension of current thread pool initialization process in order to be able to...
Looks like there's some kind of accidental merge conflict in a comment: https://github.com/Pithikos/C-Thread-Pool/blob/430251cb657f82c9a94d4ed72db6f5ea2e30f5d9/thpool.c#L459 ``` /* Get first job from queue(removes it from queue) > da2c0fe45e43ce0937f272c8cd2704bdc0afb490 */ ```
Hi All, I am thinking a feature which can dynamically add threads to thread pool. We can call it thpool_add_thread(int num); How do you think about this proposal? Thanks! hdl
At the moment pause/resume synchronisation commands affect all thread pools. Someone issuing `thpool_pause(thpool)` will cause all thread pools to pause for example even if only one thread pool is passed...
I have created a producer and several comsumer threads. Producer add work to the threads using thread_add_work function. Consumers threadpool threads do their job. Problem is: if number of thread...