w1146869587
2021-11-05 cbf39419a8299e7d119618e5e8e1b1eb35f72f45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <efsw/platform/win/MutexImpl.hpp>
 
#if EFSW_PLATFORM == EFSW_PLATFORM_WIN32
 
namespace efsw { namespace Platform {
 
MutexImpl::MutexImpl()
{
    InitializeCriticalSection(&mMutex);
}
 
MutexImpl::~MutexImpl()
{
    DeleteCriticalSection(&mMutex);
}
 
void MutexImpl::lock()
{
    EnterCriticalSection(&mMutex);
}
 
void MutexImpl::unlock()
{
    LeaveCriticalSection(&mMutex);
}
 
}}
 
#endif