|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69115 - trunk/libs/thread/src/win32
From: DDeakins_at_[hidden]
Date: 2011-02-20 23:07:14
Author: davedeakins
Date: 2011-02-20 23:07:13 EST (Sun, 20 Feb 2011)
New Revision: 69115
URL: http://svn.boost.org/trac/boost/changeset/69115
Log:
Minor patch to fix support for Windows CE (use 0xFFFFFFFF in place of TLS_OUT_OF_INDEXES on Windows CE since Windows CE does not define this constant).
Text files modified:
trunk/libs/thread/src/win32/thread.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: trunk/libs/thread/src/win32/thread.cpp
==============================================================================
--- trunk/libs/thread/src/win32/thread.cpp (original)
+++ trunk/libs/thread/src/win32/thread.cpp 2011-02-20 23:07:13 EST (Sun, 20 Feb 2011)
@@ -32,7 +32,12 @@
{
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()
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