Boost logo

Boost Users :

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


On Tue, Apr 7, 2009 at 14:45, Jeremy Rottman <rottmanj_at_[hidden]> wrote:
>
> Currently this is what I am testing with, when all threads are finish
> running, I then join all the threads to terminate them. Doing so should give
> me a thread group size of 0. However, this is now the case. Currently after
> I join the threads, the thread group size is still 0 [sic? 24, probably].
>

Given that create_thread returns a pointer to the new thread, it makes
since that join_all wouldn't remove the threads, since then the
pointer would dangle.

I don't know the best way to do what you want, though.


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