2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-12 00:22:19 +00:00

Merged Boost.Thread changes from trunk

[SVN r70382]
This commit is contained in:
Anthony Williams
2011-03-21 22:59:40 +00:00
parent 7c9116af2e
commit 7ec9804540
4 changed files with 37 additions and 15 deletions

View File

@@ -32,7 +32,12 @@ namespace boost
{
tss_cleanup_implemented(); // if anyone uses TSS, we need the cleanup linked in
current_thread_tls_key=TlsAlloc();
BOOST_ASSERT(current_thread_tls_key!=TLS_OUT_OF_INDEXES);
#if defined(UNDER_CE)
// Windows CE does not define the TLS_OUT_OF_INDEXES constant.
BOOST_ASSERT(current_thread_tls_key!=0xFFFFFFFF);
#else
BOOST_ASSERT(current_thread_tls_key!=TLS_OUT_OF_INDEXES);
#endif
}
void cleanup_tls_key()