AuroraRuntime/Source/Threading/Primitives/ConditionMutex.NT.hpp
2021-09-06 11:58:08 +01:00

31 lines
634 B
C++

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: ConditionMutex.Win32.hpp
Date: 2021-6-12
Author: Reece
***/
#pragma once
#include "IConditionMutexEx.hpp"
#if !defined(_AURUNTIME_GENERICCM)
namespace Aurora::Threading::Primitives
{
class Win32ConditionMutex : public IConditionMutexEx
{
public:
Win32ConditionMutex();
~Win32ConditionMutex();
void Lock() override;
void Unlock() override;
AuUInt GetOSHandle() override;
private:
SRWLOCK lock_;
};
using ConditionMutexImpl = Win32ConditionMutex;
}
#endif