/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: ConditionMutex.hpp
Date: 2021-6-9
Author: Reece
***/
#pragma once
namespace Aurora::Threading::Primitives
{
/**
An extremely basic mutex primitive.
This should be used with the traditional CV idiom of lock(), while(cond) { cv.wait() }, unlock() .
For other use cases, you should use the alternative mutex.
Note the usage of *should*; you could use this as a replacement to the standard mutex should there be no
desire of the IWaitable interface.
*/
class IConditionMutex
{
public:
virtual void Lock() = 0;
virtual void Unlock() = 0;
};
AUKN_SHARED_API(ConditionMutex, IConditionMutex);
}