]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timer.h
Add move semantics to Variant
[libs/core.git] / source / time / timer.h
index 8bd4d074a70ea569b19074b32e303323143fae81..7cb5c764d59979e0316e2e365444940ad8e4d786 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <vector>
 #include <sigc++/sigc++.h>
+#include <msp/core/mspcore_api.h>
 #include <msp/core/mutex.h>
 #include <msp/core/noncopyable.h>
 #include <msp/core/semaphore.h>
@@ -19,7 +20,7 @@ of the returned slot.
 
 This class is thread-safe, to allow running timers in a separate thread.
 */
-class Timer: private NonCopyable
+class MSPCORE_API Timer: private NonCopyable
 {
 public:
        class Slot
@@ -43,14 +44,13 @@ private:
        {
                Slot *slot;
 
-               SlotProxy(Slot *);
                bool operator<(const SlotProxy &) const;
        };
 
        std::vector<SlotProxy> slots;
        Semaphore sem;
        Mutex mutex;
-       bool blocking;
+       bool blocking = false;
 
 public:
        Timer();