
4 Aug
2004
4 Aug
'04
1:25 p.m.
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