]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/semaphore.h
Add move semantics to Variant
[libs/core.git] / source / core / semaphore.h
index 627c91894a27db34f2ee23e78f1ed23a2321d6c0..f5042892a1825bf1650f16e8ad93f833790f90a3 100644 (file)
@@ -1,17 +1,18 @@
 #ifndef MSP_CORE_SEMAPHORE_H_
 #define MSP_CORE_SEMAPHORE_H_
 
-#include "mutex.h"
-#include "../time/timedelta.h"
+#include <msp/time/timedelta.h>
+#include "mspcore_api.h"
+#include "noncopyable.h"
 
 namespace Msp {
 
-class Semaphore
+class MSPCORE_API Semaphore: private NonCopyable
 {
 private:
        struct Private;
 
-       Private *priv;
+       Private *priv = nullptr;
 
 public:
        Semaphore(unsigned);