X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Ftimer.h;h=04d0be95ba8fe0aa1117acf06f06bc3afc3c594d;hb=39da82b967c70282973025e4b12186625e29fe26;hp=575599fa6bb92eb16abeeced1f1147bb32cdaa8f;hpb=c3e242c2629cbc9645258b30aaf07b7285d4372b;p=libs%2Fcore.git diff --git a/source/time/timer.h b/source/time/timer.h index 575599f..04d0be9 100644 --- a/source/time/timer.h +++ b/source/time/timer.h @@ -43,14 +43,13 @@ private: { Slot *slot; - SlotProxy(Slot *); bool operator<(const SlotProxy &) const; }; std::vector slots; Semaphore sem; Mutex mutex; - bool blocking; + bool blocking = false; public: Timer(); @@ -67,9 +66,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();