mirror of
https://github.com/BeneficialCode/WinArk
synced 2026-08-09 12:00:31 +00:00
14 lines
245 B
C++
14 lines
245 B
C++
#include "pch.h"
|
|
#include "Mutex.h"
|
|
|
|
void Mutex::Init() {
|
|
KeInitializeMutex(&_mutex,0);
|
|
}
|
|
|
|
void Mutex::Lock() {
|
|
KeWaitForSingleObject(&_mutex, Executive, KernelMode, FALSE, nullptr);
|
|
}
|
|
|
|
void Mutex::Unlock() {
|
|
KeReleaseMutex(&_mutex, FALSE);
|
|
} |