Mutex::lock and ::unlock just called themselves

This commit is contained in:
Grant Limberg 2017-09-27 15:05:13 -07:00
parent c53d140145
commit 239c2540d6

View File

@ -177,6 +177,16 @@ public:
DeleteCriticalSection(&_cs);
}
inline void lock()
{
EnterCriticalSection(&_cs);
}
inline void unlock()
{
LeaveCriticalSection(&_cs);
}
inline void lock() const
{
(const_cast <Mutex *> (this))->lock();