Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
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;
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.
*