mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-06 19:19:58 +00:00
Mutex::lock and ::unlock just called themselves
This commit is contained in:
parent
c53d140145
commit
239c2540d6
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user