X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ftime%2Ftimer.h;h=62f248d23a722078472c461b9f04186c6cdd827d;hp=21aeb2b4b5b02ea0b41932f4a3311028f35c7e55;hb=be8ea216d23bf36bdfb2d3e302638782575fc136;hpb=108f2e7de1c2427e39cdf55efbcd0ca3914e451a diff --git a/source/time/timer.h b/source/time/timer.h index 21aeb2b..62f248d 100644 --- a/source/time/timer.h +++ b/source/time/timer.h @@ -3,7 +3,9 @@ #include #include +#include #include +#include #include #include "timedelta.h" #include "timestamp.h" @@ -18,7 +20,7 @@ of the returned slot. This class is thread-safe, to allow running timers in a separate thread. */ -class Timer +class Timer: private NonCopyable { public: class Slot @@ -67,7 +69,7 @@ public: void cancel(Slot &); /** Deprecated. Use one of the other overloads. */ - void tick(bool block); + 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. */