mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-17 22:36:35 +00:00
22 lines
303 B
C++
22 lines
303 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
|
|
#include <condition_variable>
|
|
#include <mutex>
|
|
|
|
class AutoResetEvent
|
|
{
|
|
private:
|
|
std::condition_variable _signal;
|
|
std::mutex _mutex;
|
|
bool _signaled;
|
|
|
|
public:
|
|
AutoResetEvent();
|
|
~AutoResetEvent();
|
|
|
|
void Reset();
|
|
void Wait(int timeoutDelay = 0);
|
|
void Signal();
|
|
};
|