private:
struct SlotProxy
{
- Slot *slot;
+ Slot *slot = 0;
SlotProxy(Slot *);
bool operator<(const SlotProxy &) const;
std::vector<SlotProxy> slots;
Semaphore sem;
Mutex mutex;
- bool blocking;
+ bool blocking = false;
public:
Timer();
/** 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();