LearnWithTouch/App/LearnWithTouch_ios/Libraries/libil2cpp/include/os/Win32/EventImpl.h
2019-07-01 14:33:21 +02:00

33 lines
566 B
C++

#pragma once
#if IL2CPP_THREADS_WIN32
#include "os/ErrorCodes.h"
#include "os/WaitStatus.h"
#include "utils/NonCopyable.h"
#include "WindowsHeaders.h"
namespace il2cpp
{
namespace os
{
class EventImpl : public il2cpp::utils::NonCopyable
{
public:
EventImpl(bool manualReset = false, bool signaled = false);
~EventImpl();
ErrorCode Set();
ErrorCode Reset();
WaitStatus Wait(bool interruptible);
WaitStatus Wait(uint32_t ms, bool interruptible);
private:
HANDLE m_Event;
};
}
}
#endif