Group: comp.lang.c++
From: James Kanze
Date: Friday, February 15, 2008 2:34 PM
Subject: Re: waiting for another thread without blocking resources...

On Feb 15, 2:01 pm, Lars Uffmann wrote:
> James Kanze wrote:
> > More correctly: a "thread" is joinable as long as the
> > boost::thread object which started it has not been
> > destructed, and can only be joined on that particular
> > object.

> Are you saying I can not join the thread with a calling
> function (event handler)? That would render join pretty much
> useless, wouldn't it?

I'm not sure what you mean. You can't join a thread if the
thread object which started it has been destructed. There's
certainly nothing that says you can't pass a pointer or a
reference to this object into a function, and do the join there.

> Is anyone working on a reference documentation for
> boost.thread btw? I'm happy to provide inputs / feedback to
> that, for this iterative approach getting to know the quirks
> of the library is just a nightmare, and all your help is
> really appreciated!

I'm not sure what the problem is. Boost thread seems pretty
well documented to me. (I learned about this business about
joinable/detached threads from the documentation.)

--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34