]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timer.h
Make sure all classes have sensible copy semantics
[libs/core.git] / source / time / timer.h
index 21aeb2b4b5b02ea0b41932f4a3311028f35c7e55..575599fa6bb92eb16abeeced1f1147bb32cdaa8f 100644 (file)
@@ -4,6 +4,7 @@
 #include <vector>
 #include <sigc++/sigc++.h>
 #include <msp/core/mutex.h>
+#include <msp/core/noncopyable.h>
 #include <msp/core/semaphore.h>
 #include "timedelta.h"
 #include "timestamp.h"
@@ -18,7 +19,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