Core: Remove NonCopyable
Former-commit-id: f8c6d10ad0b1abb4a32e3c867b7f24fd4bde68a4
This commit is contained in:
@@ -8,14 +8,15 @@
|
||||
#define NAZARA_SEMAPHORE_HPP
|
||||
|
||||
#include <Nazara/Prerequesites.hpp>
|
||||
#include <Nazara/Core/NonCopyable.hpp>
|
||||
|
||||
class NzSemaphoreImpl;
|
||||
|
||||
class NAZARA_CORE_API NzSemaphore : NzNonCopyable
|
||||
class NAZARA_CORE_API NzSemaphore
|
||||
{
|
||||
public:
|
||||
NzSemaphore(unsigned int count);
|
||||
NzSemaphore(const NzSemaphore&) = delete;
|
||||
NzSemaphore(NzSemaphore&&) = delete; ///TODO
|
||||
~NzSemaphore();
|
||||
|
||||
unsigned int GetCount() const;
|
||||
@@ -25,6 +26,9 @@ class NAZARA_CORE_API NzSemaphore : NzNonCopyable
|
||||
void Wait();
|
||||
bool Wait(nzUInt32 timeout);
|
||||
|
||||
NzSemaphore& operator=(const NzSemaphore&) = delete;
|
||||
NzSemaphore& operator=(NzSemaphore&&) = delete; ///TODO
|
||||
|
||||
private:
|
||||
NzSemaphoreImpl* m_impl;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user