forked from boostorg/regex
Fix generic mutex usage, see https://svn.boost.org/trac/boost/ticket/9461.
This commit is contained in:
1 parent
b9b3966fd2
commit
0983ff065e
3 files changed
+12
-8
No files matched your search
@@ -161,7 +161,7 @@ void scoped_static_mutex_lock::lock()
|
||||
{
|
||||
boost::call_once(static_mutex::m_once,&static_mutex::init);
|
||||
if(0 == m_plock)
|
||||
m_plock = new boost::recursive_mutex::scoped_lock(*static_mutex::m_pmutex, boost::defer_lock);
|
||||
m_plock = new boost::unique_lock<boost::recursive_mutex>(*static_mutex::m_pmutex, boost::defer_lock);
|
||||
m_plock->lock();
|
||||
m_have_lock = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user