]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common: fix Mutex, Cond no-copy declarations 591/head
authorSage Weil <sage@inktank.com>
Thu, 12 Sep 2013 05:17:21 +0000 (22:17 -0700)
committerSage Weil <sage@inktank.com>
Thu, 12 Sep 2013 05:30:05 +0000 (22:30 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/common/Cond.h
src/common/Mutex.h

index e6a13ae48bb72a20709ce9ffc67338d90158e24e..46fdf159112841e8387e53b770487985bb40b944 100644 (file)
@@ -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) {
index 06e435d49df3a5ede1bbbd10937fbcda7c6fb7b5..e26a090703d2cd63844877f31de17ece441ba157 100644 (file)
@@ -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);