24 lines
533 B
C++
24 lines
533 B
C++
/***
|
|
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::Loop
|
|
{
|
|
class Semaphore : public ILSSemaphore, public LSHandle
|
|
{
|
|
public:
|
|
Semaphore(HANDLE handle) : LSHandle(reinterpret_cast<AuUInt>(handle))
|
|
{}
|
|
|
|
bool AddOne() override;
|
|
|
|
bool ILSSemaphore::IsSignaled() override;
|
|
ELoopSource ILSSemaphore::GetType() override;
|
|
};
|
|
} |