29 lines
728 B
C++
29 lines
728 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();
|
|
|
|
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;
|
|
};
|
|
} |