14 lines
197 B
C++
14 lines
197 B
C++
|
#include "mutex.h"
|
||
|
|
||
|
mutex::mutex(){
|
||
|
InitializeCriticalSection(&cs);
|
||
|
}
|
||
|
|
||
|
void mutex::lock(){
|
||
|
EnterCriticalSection(&cs);
|
||
|
}
|
||
|
|
||
|
void mutex::unlock(){
|
||
|
LeaveCriticalSection(&cs);
|
||
|
}
|