From fcc6ae58c335d67cdf3efbc496f8dca9c457272b Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 7 Jul 2019 11:09:36 +0800 Subject: [PATCH] common/condition_variable_debug: fix wait_until() 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 --- src/common/condition_variable_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/condition_variable_debug.h b/src/common/condition_variable_debug.h index d12e7956fff..f094a5384f3 100644 --- a/src/common/condition_variable_debug.h +++ b/src/common/condition_variable_debug.h @@ -38,7 +38,7 @@ public: std::cv_status wait_until( std::unique_lock& lock, const std::chrono::time_point& when) { - timespec ts = when.to_timespec(when); + timespec ts = Clock::to_timespec(when); return _wait_until(lock.mutex(), &ts); } template -- 2.47.3