Hi,
When starting thread pool, the control never comes to the main thread back. I tried to create the pool using the POOL_FLAG_USE_SELF flag. Then also control not coming back to main loop. Please help
Also while performing the handler_func, if i feel to exit from one thread in the pool, what should i do ?
The control never returns to caller of thread_pool_start(). I thought it is applicable only for POOL_FLAG_EXIT_SELF only.
Also while performing the handler_func, if i feel to exit from one thread in the pool, what should i do ? I dont want the whole process to exit, just a thread
You could use pthread_exit(), but then I don’t think you should be using a thread pool. A thread pool is for managing threads. If you want to manage them yourself, then do.