mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-19 07:38:23 +00:00
Mutex::lock and ::unlock just called themselves
This commit is contained in:
@ -177,6 +177,16 @@ public:
|
|||||||
DeleteCriticalSection(&_cs);
|
DeleteCriticalSection(&_cs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void lock()
|
||||||
|
{
|
||||||
|
EnterCriticalSection(&_cs);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void unlock()
|
||||||
|
{
|
||||||
|
LeaveCriticalSection(&_cs);
|
||||||
|
}
|
||||||
|
|
||||||
inline void lock() const
|
inline void lock() const
|
||||||
{
|
{
|
||||||
(const_cast <Mutex *> (this))->lock();
|
(const_cast <Mutex *> (this))->lock();
|
||||||
|
Reference in New Issue
Block a user