|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86395 - trunk/libs/sync/src
From: andrey.semashev_at_[hidden]
Date: 2013-10-22 13:59:44
Author: andysem
Date: 2013-10-22 13:59:44 EDT (Tue, 22 Oct 2013)
New Revision: 86395
URL: http://svn.boost.org/trac/boost/changeset/86395
Log:
TSS manager is now deleted on process exit on Windows.
Text files modified:
trunk/libs/sync/src/tss_windows.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/libs/sync/src/tss_windows.cpp
==============================================================================
--- trunk/libs/sync/src/tss_windows.cpp Tue Oct 22 13:32:53 2013 (r86394)
+++ trunk/libs/sync/src/tss_windows.cpp 2013-10-22 13:59:44 EDT (Tue, 22 Oct 2013) (r86395)
@@ -108,6 +108,12 @@
void on_process_exit()
{
+ tss_manager* p = tss_mgr;
+ tss_mgr = NULL;
+ delete p;
+
+ TlsFree(tss_key);
+ tss_key = TLS_OUT_OF_INDEXES;
}
void on_thread_enter()
Boost-Commit 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