From: Sage Weil Date: Thu, 12 Sep 2013 05:17:21 +0000 (-0700) Subject: common: fix Mutex, Cond no-copy declarations X-Git-Tag: v0.71~91^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=91375d09f78ddf5c7590eaed60f4758a5f36878e;p=ceph.git common: fix Mutex, Cond no-copy declarations Signed-off-by: Sage Weil --- diff --git a/src/common/Cond.h b/src/common/Cond.h index e6a13ae48bb7..46fdf1591128 100644 --- a/src/common/Cond.h +++ b/src/common/Cond.h @@ -32,8 +32,8 @@ class Cond { Mutex *waiter_mutex; // don't allow copying. - void operator=(Cond &C) {} - Cond( const Cond &C ) {} + void operator=(Cond &C); + Cond(const Cond &C); public: Cond() : waiter_mutex(NULL) { diff --git a/src/common/Mutex.h b/src/common/Mutex.h index 06e435d49df3..e26a090703d2 100644 --- a/src/common/Mutex.h +++ b/src/common/Mutex.h @@ -46,8 +46,8 @@ private: PerfCounters *logger; // don't allow copying. - void operator=(Mutex &M) {} - Mutex( const Mutex &M ) {} + void operator=(Mutex &M); + Mutex(const Mutex &M); void _register() { id = lockdep_register(name);