NO_COPY_CLASS c++11

This commit is contained in:
2020-07-17 11:46:21 +03:00
parent 1a3096c48b
commit 33a6382f4d
8 changed files with 24 additions and 34 deletions

View File

@@ -28,6 +28,7 @@
*/
class PIP_EXPORT PIConditionLock {
public:
NO_COPY_CLASS(PIConditionLock)
explicit PIConditionLock();
~PIConditionLock();
@@ -43,7 +44,6 @@ public:
void * handle();
private:
NO_COPY_CLASS(PIConditionLock)
PRIVATE_DECLARATION
};

View File

@@ -32,6 +32,7 @@
*/
class PIP_EXPORT PIConditionVariable {
public:
NO_COPY_CLASS(PIConditionVariable)
explicit PIConditionVariable();
virtual ~PIConditionVariable();
@@ -111,7 +112,6 @@ public:
virtual bool waitFor(PIConditionLock& lk, int timeoutMs, const std::function<bool()>& condition);
private:
NO_COPY_CLASS(PIConditionVariable)
PRIVATE_DECLARATION
};