This commit is contained in:
lotodore
2008-04-25 09:32:50 +00:00
parent 2e9e7e3aed
commit c31a43e64d
+2 -2
View File
@@ -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;
} }