From: Roland (roland.schwarz_at_[hidden])
Date: 2004-08-04 08:48:35
On Wed, 04 Aug 2004 09:25:43 -0400 Michael Glassford <glassfordm_at_[hidden]> wrote:
> Just to make certain, should that read:
No. on_thread_exit is correct.
> or was the point to call on_thread_exit() sooner for the main thread? If
> that is the case, should both
While this could be done here, I took a different route which I think is a little cleaner.
atexit will not run when the user does a quick exit of the program which deliberately
omits calls to the global destructors. This is standard behaviour of the library.
So we take part in this, because the main pupose of on_thread_exit is to call
the destructors of the TSS globals.
On the other side we won't miss on_process_exit so I am defering this to
the section which will run even when the user is quick exiting.
If you think this is not reasonable it should be changed of course.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk