mirror of
https://github.com/emu-russia/pureikyubu.git
synced 2025-04-02 10:42:15 -04:00
14 lines
151 B
C++
14 lines
151 B
C++
|
|
#pragma once
|
|
|
|
#include <intrin.h>
|
|
#include <Windows.h>
|
|
|
|
class SpinLock
|
|
{
|
|
volatile LONG _lock = 0;
|
|
|
|
public:
|
|
void Lock();
|
|
void Unlock();
|
|
};
|