31 lines
778 B
C++
31 lines
778 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: LSEvent.NT.hpp
|
|
Date: 2021-10-1
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
#include "LSHandle.hpp"
|
|
|
|
namespace Aurora::IO::Loop
|
|
{
|
|
struct LSEvent : ILSEvent, virtual LSHandle
|
|
{
|
|
LSEvent();
|
|
LSEvent(HANDLE h);
|
|
LSEvent(bool triggered, bool atomicRelease, bool permitMultipleTriggers);
|
|
~LSEvent();
|
|
|
|
PROXY_LOOP_LOOPSOURCE_EXT_APIS_;
|
|
|
|
bool TryInit(bool bTriggered, bool bAtomicRelease, bool bPermitMultipleTriggers);
|
|
|
|
bool Set() override;
|
|
bool Reset() override;
|
|
|
|
virtual bool IsSignaled() override;
|
|
virtual bool WaitOn(AuUInt32 timeout) override;
|
|
virtual ELoopSource GetType() override;
|
|
};
|
|
} |