This commit is contained in:
@@ -42,7 +42,7 @@ extern "C" {
|
|||||||
#if (BOOST_VERSION) >= 103500
|
#if (BOOST_VERSION) >= 103500
|
||||||
((boost::mutex *)(*obj))->lock();
|
((boost::mutex *)(*obj))->lock();
|
||||||
#else
|
#else
|
||||||
boost::detail::thread::lock_ops<boost::mutex>::lock((boost::mutex *)(*obj));
|
boost::detail::thread::lock_ops<boost::mutex>::lock(*((boost::mutex *)*obj));
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -50,7 +50,7 @@ extern "C" {
|
|||||||
#if (BOOST_VERSION) >= 103500
|
#if (BOOST_VERSION) >= 103500
|
||||||
((boost::mutex *)(*obj))->unlock();
|
((boost::mutex *)(*obj))->unlock();
|
||||||
#else
|
#else
|
||||||
boost::detail::thread::lock_ops<boost::mutex>::unlock((boost::mutex *)(*obj));
|
boost::detail::thread::lock_ops<boost::mutex>::unlock(*((boost::mutex *)*obj));
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user