]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/thread.h
Add move semantics to Variant
[libs/core.git] / source / core / thread.h
index ae9a0dda832b716445ad81b9493b8a7c24ca6778..71acb22079f749520e86b8939965483218fdb773 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_CORE_THREAD_H_
 
 #include <string>
+#include "mspcore_api.h"
 #include "noncopyable.h"
 
 namespace Msp {
@@ -13,7 +14,7 @@ automatically started upon creation - you must manually call launch() instead.
 This is to allow initializing variables of the derived class before the thread
 is started.
 */
-class Thread: private NonCopyable
+class MSPCORE_API Thread: private NonCopyable
 {
 private:
        struct Private;
@@ -27,7 +28,7 @@ private:
                JOINED
        };
 
-       Private *_priv = 0;
+       Private *_priv = nullptr;
        std::string _name;
        State _state = PENDING;