AuroraRuntime/Source/Threading/Primitives/ConditionMutex.Unix.hpp
2021-06-27 22:25:29 +01:00

30 lines
615 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: ConditionMutex.Unix.hpp
Date: 2021-6-12
Author: Reece
***/
#pragma once
#include "IConditionMutexEx.hpp"
#include "Mutex.Generic.hpp"
namespace Aurora::Threading::Primitives
{
class UnixConditionMutex : public IConditionMutexEx
{
public:
UnixConditionMutex();
~UnixConditionMutex();
void Lock() override;
void Unlock() override;
AuUInt GetOSHandle() override;
private:
Mutex mutex_;
};
using ConditionMutexImpl = UnixConditionMutex;
}