
6 Aug
2004
6 Aug
'04
9:13 a.m.
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.
What "pthreads cleanup handlers"? Do you mean TSD dtors and/or thread cancel/exit cleanup handlers? Thread termination (unwinding of cleanup handlers followed by TSD destruction) and program (aka process) termination (it runs atexit() handlers and C++ destructors for objects with static storage duration, if not abnormal) is fully specified. Or do you mean C++ stuff "on the stack", not static storage duration? regards, alexander.