Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-07-19 07:03:42


Michael Glassford wrote:
>
> Replying to myself: I forgot to mention: it's easy enough to make
> threads created by Boost.Threads call on_thread_exit() after the
> thread function exits. Does anyone see any drawbacks to doing this?

No, as long as it is safe to call the on_thread_exit callback twice.

However did you consider the alternative design of

    void at_thread_exit( void (*pf)() );

(along the lines of atexit).


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