From: Momchil Velikov (velco_at_[hidden])
Date: 2004-08-06 04:55:32
>>>>> "Alexander" == Alexander Terekhov <terekhov_at_[hidden]> writes:
Alexander> Michael Glassford wrote:
>> 2) IIUC, with the pthreads cleanup handlers, it is literally
>> unspecified whether they run before or after C++ destructors because
>> pthreads is a C-based standard.
Alexander> What "pthreads cleanup handlers"? Do you mean TSD dtors and/or
Alexander> thread cancel/exit cleanup handlers? Thread termination (unwinding
Alexander> of cleanup handlers followed by TSD destruction) and program (aka
Alexander> process) termination (it runs atexit() handlers and C++ destructors
Alexander> for objects with static storage duration, if not abnormal) is fully
Alexander> specified. Or do you mean C++ stuff "on the stack", not static
Alexander> storage duration?
I guess yes, he meant auto objects.
IMHO, one can safely assume C++ destructors will be run before
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk