mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-23 17:19:39 +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();
|
|
};
|