]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timer.h
Use default member initializers and constructor delegation
[libs/core.git] / source / time / timer.h
index 575599fa6bb92eb16abeeced1f1147bb32cdaa8f..91acda9d49281373ade15beb162db9f7789c6f99 100644 (file)
@@ -41,7 +41,7 @@ public:
 private:
        struct SlotProxy
        {
-               Slot *slot;
+               Slot *slot = 0;
 
                SlotProxy(Slot *);
                bool operator<(const SlotProxy &) const;
@@ -50,7 +50,7 @@ private:
        std::vector<SlotProxy> slots;
        Semaphore sem;
        Mutex mutex;
-       bool blocking;
+       bool blocking = false;
 
 public:
        Timer();
@@ -67,9 +67,6 @@ public:
        /** Cancels a previously added timer. */
        void cancel(Slot &);
 
-       /** Deprecated.  Use one of the other overloads. */
-       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();