]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/semaphore.h
Use nullptr instead of 0 for pointers
[libs/core.git] / source / core / semaphore.h
index 627c91894a27db34f2ee23e78f1ed23a2321d6c0..28c3b3d72cb8f009fd4474cfa73ab586db1a1d02 100644 (file)
@@ -1,17 +1,17 @@
 #ifndef MSP_CORE_SEMAPHORE_H_
 #define MSP_CORE_SEMAPHORE_H_
 
-#include "mutex.h"
-#include "../time/timedelta.h"
+#include <msp/time/timedelta.h>
+#include "noncopyable.h"
 
 namespace Msp {
 
-class Semaphore
+class Semaphore: private NonCopyable
 {
 private:
        struct Private;
 
-       Private *priv;
+       Private *priv = nullptr;
 
 public:
        Semaphore(unsigned);