]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/condition_variable_debug: fix wait_until()
authorKefu Chai <kchai@redhat.com>
Sun, 7 Jul 2019 03:09:36 +0000 (11:09 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 3 Aug 2019 01:34:50 +0000 (09:34 +0800)
to_timespec() is not a member function of time_point, it is a member
funcion of real_clock / coarse_real_clock.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/condition_variable_debug.h

index d12e7956fff8d98ad6a03053ec838f9e035061b4..f094a5384f3f9a0634b57850a4760bf806cd5f54 100644 (file)
@@ -38,7 +38,7 @@ public:
   std::cv_status wait_until(
     std::unique_lock<mutex_debug>& lock,
     const std::chrono::time_point<Clock, Duration>& when) {
-    timespec ts = when.to_timespec(when);
+    timespec ts = Clock::to_timespec(when);
     return _wait_until(lock.mutex(), &ts);
   }
   template<class Rep, class Period>