]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timer.h
Use braced initializer lists in place of constructors when possible
[libs/core.git] / source / time / timer.h
index 62f248d23a722078472c461b9f04186c6cdd827d..04d0be95ba8fe0aa1117acf06f06bc3afc3c594d 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <vector>
 #include <sigc++/sigc++.h>
-#include <msp/core/attributes.h>
 #include <msp/core/mutex.h>
 #include <msp/core/noncopyable.h>
 #include <msp/core/semaphore.h>
@@ -44,14 +43,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();
@@ -68,9 +66,6 @@ public:
        /** Cancels a previously added timer. */
        void cancel(Slot &);
 
-       /** Deprecated.  Use one of the other overloads. */
-       DEPRECATED void tick(bool block);
-
        /** Waits until a timer expires, then executes it.  If no timers have been
        set, blocks until one is added from another thread. */
        void tick();