Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2004-07-28 07:39:04


Peter Dimov wrote:
[...]
> boost::thread th( boost::bind( &Thread::run, &my_thread_object ) );
>
> but, of course, there are the lifetime issues to consider, which your
> proposal does not address, unless you want to enforce join() in the
> destructor.

Nah. In the *pre*destructor. ;-)

Well, ability to subclass "real" thread-objects (without any virtual
"run" javanese) is usefull but not critical. Nice to have, so to say.

regards,
alexander.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk