forked from boostorg/regex
Change name of extern "C" function so it's prefixed with "boost_"
[SVN r58812]
This commit is contained in:
@ -140,7 +140,7 @@ inline bool scoped_static_mutex_lock::locked()const
|
|||||||
namespace boost{
|
namespace boost{
|
||||||
|
|
||||||
class BOOST_REGEX_DECL scoped_static_mutex_lock;
|
class BOOST_REGEX_DECL scoped_static_mutex_lock;
|
||||||
extern "C" BOOST_REGEX_DECL void free_static_mutex();
|
extern "C" BOOST_REGEX_DECL void boost_regex_free_static_mutex();
|
||||||
|
|
||||||
class BOOST_REGEX_DECL static_mutex
|
class BOOST_REGEX_DECL static_mutex
|
||||||
{
|
{
|
||||||
|
@ -124,7 +124,7 @@ void scoped_static_mutex_lock::unlock()
|
|||||||
boost::recursive_mutex* static_mutex::m_pmutex = 0;
|
boost::recursive_mutex* static_mutex::m_pmutex = 0;
|
||||||
boost::once_flag static_mutex::m_once = BOOST_ONCE_INIT;
|
boost::once_flag static_mutex::m_once = BOOST_ONCE_INIT;
|
||||||
|
|
||||||
extern "C" BOOST_REGEX_DECL void free_static_mutex()
|
extern "C" BOOST_REGEX_DECL void boost_regex_free_static_mutex()
|
||||||
{
|
{
|
||||||
delete static_mutex::m_pmutex;
|
delete static_mutex::m_pmutex;
|
||||||
static_mutex::m_pmutex = 0;
|
static_mutex::m_pmutex = 0;
|
||||||
@ -133,7 +133,7 @@ extern "C" BOOST_REGEX_DECL void free_static_mutex()
|
|||||||
void static_mutex::init()
|
void static_mutex::init()
|
||||||
{
|
{
|
||||||
m_pmutex = new boost::recursive_mutex();
|
m_pmutex = new boost::recursive_mutex();
|
||||||
int r = atexit(free_static_mutex);
|
int r = atexit(boost_regex_free_static_mutex);
|
||||||
BOOST_ASSERT(0 == r);
|
BOOST_ASSERT(0 == r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user