Boost logo

Boost Users :

Subject: Re: [Boost-users] Determining thread existence
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2009-04-08 14:15:15


On Wed, Apr 8, 2009 at 13:44, Jeremy Rottman <rottmanj_at_[hidden]> 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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net