mirror of
https://github.com/libretro/Mesen.git
synced 2024-12-13 03:47:27 +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();
|
|
};
|