forked from boostorg/regex
Lockfree mem_block_cache only active if std::atomic is available
This commit is contained in:
@ -192,7 +192,7 @@ BOOST_REGEX_DECL void BOOST_REGEX_CALL put_mem_block(void* p)
|
||||
#else
|
||||
|
||||
#if defined(BOOST_REGEX_MEM_BLOCK_CACHE_LOCK_FREE)
|
||||
mem_block_cache block_cache;
|
||||
mem_block_cache block_cache = { { {nullptr} } } ;
|
||||
#elif defined(BOOST_HAS_THREADS)
|
||||
mem_block_cache block_cache = { 0, 0, BOOST_STATIC_MUTEX_INIT, };
|
||||
#else
|
||||
|
Reference in New Issue
Block a user