Boost logo

Boost :

From: Michael Glassford (glassfordm_at_[hidden])
Date: 2004-08-04 08:25:43


Roland wrote:

I just noticed that in the code you posted, you wrote:

> static void on_process_init(void)
> {
> /* This hooks the main thread exit. It will run the */
> /* termination before global dtors, but will not be run */
> /* when 'quick' exiting the library! However, this is the */
> /* standard behaviour for all global dtors anyways. */
> atexit(on_thread_exit);
>
> /* hand over to boost */
> on_process_enter();
> }

Just to make certain, should that read:

     atexit(on_process_exit);
               ^^^^^^^

or was the point to call on_thread_exit() sooner for the main thread? If
that is the case, should both

     atexit(on_thread_exit);
     atexit(on_process_exit);

be included, in your opinion?

Mike


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