mirror of
https://github.com/BeneficialCode/WinArk.git
synced 2026-10-17 04:40:35 +08:00
14 lines
270 B
C++
14 lines
270 B
C++
#include "pch.h"
|
|
#include "QueuedSpinLock.h"
|
|
|
|
void QueuedSpinLock::Init() {
|
|
KeInitializeSpinLock(&_lock);
|
|
}
|
|
|
|
void QueuedSpinLock::Lock() {
|
|
KeAcquireInStackQueuedSpinLock(&_lock, &_handle);
|
|
}
|
|
|
|
void QueuedSpinLock::Unlock() {
|
|
KeReleaseInStackQueuedSpinLock(&_handle);
|
|
} |