From: Michal Jarzabek Date: Sun, 11 Sep 2016 19:19:57 +0000 (+0100) Subject: common/Timer.h: delete copy constr and assign op X-Git-Tag: v11.0.1~252^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F11046%2Fhead;p=ceph.git common/Timer.h: delete copy constr and assign op Signed-off-by: Michal Jarzabek --- diff --git a/src/common/Timer.h b/src/common/Timer.h index 1c14c574ba36..6ac916d9e2ef 100644 --- a/src/common/Timer.h +++ b/src/common/Timer.h @@ -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. *