
19 Jul
2004
19 Jul
'04
12:03 p.m.
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).