X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ftime%2Ftimer.h;h=33257319eba3466d89f28c650efcd26dde0a996d;hp=62f248d23a722078472c461b9f04186c6cdd827d;hb=41363aed34382386f915f17c1a961750b4fdcb14;hpb=2d608d773f3494e84cb154bdbb07954e87d9af86 diff --git a/source/time/timer.h b/source/time/timer.h index 62f248d..3325731 100644 --- a/source/time/timer.h +++ b/source/time/timer.h @@ -3,7 +3,6 @@ #include #include -#include #include #include #include @@ -42,7 +41,7 @@ public: private: struct SlotProxy { - Slot *slot; + Slot *slot = nullptr; SlotProxy(Slot *); bool operator<(const SlotProxy &) const; @@ -51,7 +50,7 @@ private: std::vector slots; Semaphore sem; Mutex mutex; - bool blocking; + bool blocking = false; public: Timer(); @@ -68,9 +67,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();