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
|
|
|
|
|
|
|
namespace Aurora::Loop
|
|
|
|
{
|
2021-10-03 13:19:33 +00:00
|
|
|
class Mutex : public ILSMutex, public LSHandle
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Mutex(HANDLE handle) : LSHandle(reinterpret_cast<AuUInt>(handle))
|
|
|
|
{}
|
|
|
|
|
|
|
|
bool Unlock() override;
|
|
|
|
|
|
|
|
bool ILSMutex::IsSignaled() override;
|
|
|
|
ELoopSource ILSMutex::GetType() override;
|
|
|
|
};
|
2021-10-02 10:28:49 +00:00
|
|
|
}
|