Re: [Boost-users] [thread] Problems with TSS and static threadlibrary

20 Apr
2007
20 Apr
'07
6:14 a.m.
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
6519
Age (days ago)
6519
Last active (days ago)
0 comments
1 participants
participants (1)
-
Johan Nilsson