2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-13 00:42:09 +00:00

Thread: 6342: Adapt the one_flag and call_once to the c++11 interface

[SVN r77767]
This commit is contained in:
Vicente J. Botet Escriba
2012-04-04 20:01:11 +00:00
parent 8d9370b005
commit 59265265d9
7 changed files with 95 additions and 26 deletions

View File

@@ -26,7 +26,11 @@ namespace boost
{
namespace
{
#ifdef BOOST_THREAD_PROVIDES_ONCE_CXX11
boost::once_flag current_thread_tls_init_flag;
#else
boost::once_flag current_thread_tls_init_flag=BOOST_ONCE_INIT;
#endif
#if defined(UNDER_CE)
// Windows CE does not define the TLS_OUT_OF_INDEXES constant.
DWORD tls_out_of_index=0xFFFFFFFF;