X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Ftimer.h;h=7cb5c764d59979e0316e2e365444940ad8e4d786;hb=68d54a837efb1aa8ed41008eee0d93118c154238;hp=8bd4d074a70ea569b19074b32e303323143fae81;hpb=817e584903996a041692640720a5a272d847a3c7;p=libs%2Fcore.git diff --git a/source/time/timer.h b/source/time/timer.h index 8bd4d07..7cb5c76 100644 --- a/source/time/timer.h +++ b/source/time/timer.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -19,7 +20,7 @@ of the returned slot. This class is thread-safe, to allow running timers in a separate thread. */ -class Timer: private NonCopyable +class MSPCORE_API Timer: private NonCopyable { public: class Slot @@ -43,14 +44,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();