From f601bc049258ed438aa6f8199c5be11770d44aaf Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 18 Jun 2018 17:31:00 -0500 Subject: [PATCH] sync.hh: return cv_status instead of dropping it, in case useful. --- src/libutil/sync.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libutil/sync.hh b/src/libutil/sync.hh index 3b2710f6..e1d591d7 100644 --- a/src/libutil/sync.hh +++ b/src/libutil/sync.hh @@ -57,11 +57,11 @@ public: } template - void wait_for(std::condition_variable & cv, + std::cv_status wait_for(std::condition_variable & cv, const std::chrono::duration & duration) { assert(s); - cv.wait_for(lk, duration); + return cv.wait_for(lk, duration); } template