Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCoding/Private/External/LC_Event.h
Tim Smith b48b94b010 Integration of Live++ 1.6.3
#rb none
#rnx

[CL 14926202 by Tim Smith in ue5-main branch]
2020-12-15 09:27:44 -04:00

48 lines
886 B
C++

// Copyright 2011-2020 Molecular Matters GmbH, all rights reserved.
#pragma once
// BEGIN EPIC MOD
#include "CoreTypes.h"
#include "Windows/MinimalWindowsApi.h"
// END EPIC MOD
// named/unnamed event.
// acts process-wide if given a name.
class Event
{
public:
struct Type
{
enum Enum
{
MANUAL_RESET,
AUTO_RESET
};
};
Event(const wchar_t* name, Type::Enum type);
~Event(void);
// Resets the event.
void Reset(void);
// Signals the event.
void Signal(void);
// Waits until the event becomes signaled, blocking.
bool Wait(void);
// Waits until the event becomes signaled, blocking until the timeout is reached.
// Returns whether the event was signaled.
bool WaitTimeout(unsigned int milliSeconds);
// Returns whether the event was signaled, non-blocking.
bool TryWait(void);
private:
// BEGIN EPIC MOD
Windows::HANDLE m_event;
// END EPIC MOD
};