2021-10-02 10:28:49 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: LSMutex.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 LSMutex : ILSMutex, virtual LSHandle
|
2021-10-03 13:19:33 +00:00
|
|
|
{
|
2022-04-16 18:26:01 +00:00
|
|
|
LSMutex(HANDLE handle);
|
|
|
|
~LSMutex();
|
2021-10-03 13:19:33 +00:00
|
|
|
|
|
|
|
bool Unlock() override;
|
|
|
|
|
|
|
|
bool ILSMutex::IsSignaled() override;
|
2022-04-12 21:26:15 +00:00
|
|
|
bool ILSMutex::WaitOn(AuUInt32 timeout) override;
|
2021-10-03 13:19:33 +00:00
|
|
|
ELoopSource ILSMutex::GetType() override;
|
|
|
|
};
|
2021-10-02 10:28:49 +00:00
|
|
|
}
|