mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-10 11:11:32 -10:00
* Code: Add auto-formatting rules for C++ projects (clang-format) and enforce code style via "clang-format" and "dotnet format" * fix ui format warnings
22 lines
299 B
C++
22 lines
299 B
C++
#pragma once
|
|
#include "pch.h"
|
|
|
|
#include <condition_variable>
|
|
#include <mutex>
|
|
|
|
class AutoResetEvent
|
|
{
|
|
private:
|
|
std::condition_variable _signal;
|
|
std::mutex _mutex;
|
|
bool _signaled;
|
|
|
|
public:
|
|
AutoResetEvent();
|
|
~AutoResetEvent();
|
|
|
|
void Reset();
|
|
bool Wait(int timeoutDelay = 0);
|
|
void Signal();
|
|
};
|