2021-10-02 10:28:49 +00:00
|
|
|
/***
|
|
|
|
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
|
2021-10-03 13:19:33 +00:00
|
|
|
#include "LSHandle.hpp"
|
2021-10-02 10:28:49 +00:00
|
|
|
|
2022-06-11 23:52:46 +00:00
|
|
|
namespace Aurora::IO::Loop
|
2021-10-02 10:28:49 +00:00
|
|
|
{
|
2022-05-04 15:34:02 +00:00
|
|
|
struct LSEvent : ILSEvent, virtual LSHandle
|
2021-10-03 13:19:33 +00:00
|
|
|
{
|
2023-12-28 16:49:11 +00:00
|
|
|
LSEvent();
|
2022-04-16 18:26:01 +00:00
|
|
|
LSEvent(HANDLE h);
|
2022-03-30 17:56:56 +00:00
|
|
|
LSEvent(bool triggered, bool atomicRelease, bool permitMultipleTriggers);
|
2022-04-07 01:20:46 +00:00
|
|
|
~LSEvent();
|
2021-10-03 13:19:33 +00:00
|
|
|
|
2023-12-28 16:49:11 +00:00
|
|
|
bool TryInit(bool bTriggered, bool bAtomicRelease, bool bPermitMultipleTriggers);
|
|
|
|
|
2021-10-03 13:19:33 +00:00
|
|
|
bool Set() override;
|
|
|
|
bool Reset() override;
|
|
|
|
|
2023-12-19 03:43:11 +00:00
|
|
|
virtual bool IsSignaled() override;
|
|
|
|
virtual bool WaitOn(AuUInt32 timeout) override;
|
|
|
|
virtual ELoopSource GetType() override;
|
2021-10-03 13:19:33 +00:00
|
|
|
};
|
2021-10-02 10:28:49 +00:00
|
|
|
}
|