]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Clock: remove unused mutex
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 18 Feb 2011 16:38:52 +0000 (08:38 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 18 Feb 2011 16:40:26 +0000 (08:40 -0800)
We don't use a mutex in g_clock any more, so let's not construct one any
more.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/common/Clock.cc
src/common/Clock.h

index a41fdc1c6859d6915a80aec0c48d37d9d6727aef..68d3ce153055fe2710021c5c55c875ee657bde93 100644 (file)
@@ -19,3 +19,8 @@
 // public
 Clock g_clock;
 
+Clock::Clock() {
+}
+
+Clock::~Clock() {
+}
index d72d6d1c0785dc4474dd59fdd7074c16b0cd3794..3a21a31bb91da60e2c8cd0a3ebcfa9242510e3f4 100644 (file)
  * 
  */
 
-
-
 #ifndef CEPH_CLOCK_H
 #define CEPH_CLOCK_H
 
-#include <iostream>
 #include <iomanip>
-
+#include <iostream>
 #include <sys/time.h>
 #include <time.h>
 
-#include "Mutex.h"
-
 #include "include/utime.h"
 
-
-
-// -- clock --
 class Clock {
  protected:
   //utime_t start_offset;
@@ -37,10 +29,9 @@ class Clock {
   utime_t last;
   utime_t zero;
 
-  Mutex lock;
-
  public:
-  Clock() : lock("Clock::lock") { }
+  Clock();
+  ~Clock();
 
   // real time.
   utime_t real_now() {
@@ -81,8 +72,6 @@ class Clock {
     ts->tv_nsec = real.nsec();
   }
 
-
-
   // absolute time
   time_t gettime() {
     return real_now().sec();