The main reason I want to remove the thread is when the daemon iterates, I do not want it to create new threads if threads are currently running. I am currently testing with 25 threads, the total thread count is dynamic. To sum it up, if threads are active and running, I do not want new threads to be created until no threads are active. The issue I am having is trying to determine if there are active threads still running code. Scott McMurray wrote:
On Wed, Apr 8, 2009 at 13:44, Jeremy Rottman
wrote: What I am trying to do is remove threads from the thread group after they have run. So that when my daemon iterates it will start new threads if none exist.
Why would you want to close down the threads and re-open them? Why not just leave the threads running and have them pull tasks from a queue?
Unless your hardware is quite special, you don't normally want 25 active threads anyway... _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users