Core: Remove NonCopyable
Former-commit-id: f8c6d10ad0b1abb4a32e3c867b7f24fd4bde68a4
This commit is contained in:
@@ -8,24 +8,26 @@
|
||||
#define NAZARA_MUTEX_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Core/NonCopyable.hpp>
|
||||
|
||||
class NzMutexImpl;
|
||||
|
||||
class NAZARA_CORE_API NzMutex : NzNonCopyable
|
||||
class NAZARA_CORE_API NzMutex
|
||||
{
|
||||
friend class NzConditionVariable;
|
||||
|
||||
public:
|
||||
NzMutex();
|
||||
NzMutex(const NzMutex&) = delete;
|
||||
NzMutex(NzMutex&&) = delete; ///TODO
|
||||
~NzMutex();
|
||||
|
||||
void Lock();
|
||||
|
||||
bool TryLock();
|
||||
|
||||
void Unlock();
|
||||
|
||||
NzMutex& operator=(const NzMutex&) = delete;
|
||||
NzMutex& operator=(NzMutex&&) = delete; ///TODO
|
||||
|
||||
private:
|
||||
NzMutexImpl* m_impl;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user