Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Using more than 1 thread pools in a process.: (1 Item)
   
Using more than 1 thread pools in a process.  
How does one use 2 thread pools in the same process? How can I set them up so that  both thread pools run in parallel in
 the same process?

I am experimenting with 2 thread pools in the same process. Both were initially created with the POOL_FLAG_USE_SELF flag
. In the main(), after I setup the thread pool attributes (_thread_pool_attr) and create them with thread_pool_create() 
(w/out a problem), I start them in this way:

thread_pool_start (firstPool);
thread_pool_start (secondPool);

All thread pool functions have printfs but I see no printfs from the 2nd thread pool. It looks that it was not started. 
Just for the hell of it, I changed the flags to POOL_FLAG_EXIT_SELF  and still see nothing from the 2nd thread pool.

Thanks,
M.