Boost logo

Threads-Devel :

From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2007-04-20 02:14:44


Johan Nilsson wrote:
> [cross-posting this to boost.threads.devel as I tried putting out a
> request for support there as well]
>

[snip]

> As you said - the static thread_specific_ptr<> destructors are run
> after on_thread_exit for the main thread (actually, some of them
> before, and one of them after, which is even more confusing). Reading
> the comments in tss_pe.cpp, it seems to be a deliberate decision to
> run on_thread_exit from the main thread before the static destructors
> are run. Perhaps to be able to use static objects safely during
> "normal" thread exits?

Uh, sorry. Don't know what I was thinking here .. perhaps the result of
debugging the problem for an extended amount of time.

/ Johan


Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk