]> 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 3f2cc974a455855c35246f7abc10d12d1993e709..f5042892a1825bf1650f16e8ad93f833790f90a3 100644 (file)
@@ -1,24 +1,18 @@
-/* $Id$
-
-This file is part of libmspcore
-Copyright © 2006  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #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);