thread_pool_create()

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 ?

Regards,
hello

What do you need help with. That sounds like the way it’s supposed to work.

What do you mean by exit? If you call exit() the process will exit.

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.

Ok , thank you