25 lines
526 B
C++
25 lines
526 B
C++
/***
|
|
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
|
|
#include "LSHandle.hpp"
|
|
|
|
namespace Aurora::Loop
|
|
{
|
|
class Mutex : public ILSMutex, public LSHandle
|
|
{
|
|
public:
|
|
Mutex(HANDLE handle);
|
|
~Mutex();
|
|
|
|
bool Unlock() override;
|
|
|
|
bool ILSMutex::IsSignaled() override;
|
|
bool ILSMutex::WaitOn(AuUInt32 timeout) override;
|
|
ELoopSource ILSMutex::GetType() override;
|
|
};
|
|
} |