mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 21:13:44 +02:00
Mutex::lock and ::unlock just called themselves
This commit is contained in:
parent
c53d140145
commit
239c2540d6
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue