]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/Timer.h: delete copy constr and assign op 11046/head
authorMichal Jarzabek <stiopa@gmail.com>
Sun, 11 Sep 2016 19:19:57 +0000 (20:19 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Sun, 11 Sep 2016 19:19:57 +0000 (20:19 +0100)
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/common/Timer.h

index 1c14c574ba36c1310488c1be052a8d02c629f142..6ac916d9e2ef49088901065e0e8a2c8d3d73c1d4 100644 (file)
@@ -27,10 +27,6 @@ class SafeTimerThread;
 
 class SafeTimer
 {
-  // This class isn't supposed to be copied
-  SafeTimer(const SafeTimer &rhs);
-  SafeTimer& operator=(const SafeTimer &rhs);
-
   CephContext *cct;
   Mutex& lock;
   Cond cond;
@@ -49,6 +45,10 @@ class SafeTimer
   void dump(const char *caller = 0) const;
 
 public:
+  // This class isn't supposed to be copied
+  SafeTimer(const SafeTimer&) = delete;
+  SafeTimer& operator=(const SafeTimer&) = delete;
+
   /* Safe callbacks determines whether callbacks are called with the lock
    * held.
    *