mirror of
https://github.com/boostorg/regex.git
synced 2025-07-30 20:47:21 +02:00
* Changed BOOST_RE_THREADS to BOOST_HAS_THREADS,
* Updated allocator code to use SGI node based allocator when available. [SVN r11829]
This commit is contained in:
@ -189,13 +189,13 @@ typedef lock_guard<critical_section> cs_guard;
|
|||||||
BOOST_REGEX_DECL extern critical_section* p_re_lock;
|
BOOST_REGEX_DECL extern critical_section* p_re_lock;
|
||||||
BOOST_REGEX_DECL extern unsigned int re_lock_count;
|
BOOST_REGEX_DECL extern unsigned int re_lock_count;
|
||||||
|
|
||||||
#define BOOST_RE_GUARD(inst) boost::re_detail::critical_section::rw_guard g(inst);
|
#define BOOST_REGEX_GUARD(inst) boost::re_detail::critical_section::rw_guard g(inst);
|
||||||
|
|
||||||
#else // BOOST_RE_THREADS
|
#else // BOOST_HAS_THREADS
|
||||||
|
|
||||||
#define BOOST_RE_GUARD(inst)
|
#define BOOST_REGEX_GUARD(inst)
|
||||||
|
|
||||||
#endif // BOOST_RE_THREADS
|
#endif // BOOST_HAS_THREADS
|
||||||
|
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma option pop
|
#pragma option pop
|
||||||
|
Reference in New Issue
Block a user