summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-09-11 22:17:21 -0700
committerSage Weil <sage@inktank.com>2013-09-11 22:30:05 -0700
commit91375d09f78ddf5c7590eaed60f4758a5f36878e (patch)
tree88ac9e7a0f12ccecf78288e85504b63a565ab5b4
parentc56e039cac6cc2438547f6e26fe611ac5ffbe8a2 (diff)
downloadceph-91375d09f78ddf5c7590eaed60f4758a5f36878e.tar.gz
common: fix Mutex, Cond no-copy declarations
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/common/Cond.h4
-rw-r--r--src/common/Mutex.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/Cond.h b/src/common/Cond.h
index e6a13ae48bb..46fdf159112 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 06e435d49df..e26a090703d 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);