AuroraRuntime/Source/IO/Loop/LSSemaphore.NT.hpp

28 lines
634 B
C++
Raw Normal View History

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: LSSemaphore.NT.hpp
Date: 2021-10-1
Author: Reece
***/
#pragma once
#include "LSHandle.hpp"
namespace Aurora::IO::Loop
{
struct LSSemaphore : ILSSemaphore, virtual LSHandle
{
2023-10-21 03:31:00 +00:00
LSSemaphore();
LSSemaphore(HANDLE handle);
~LSSemaphore();
2023-10-21 03:31:00 +00:00
bool TryInit(AuUInt32 initialCount = 0);
bool AddOne() override;
2023-10-22 05:11:39 +00:00
bool AddMany(AuUInt32 uCount) override;
2023-12-19 03:43:11 +00:00
bool IsSignaled() override;
bool WaitOn(AuUInt32 timeout) override;
ELoopSource GetType() override;
};
}