From f601bc049258ed438aa6f8199c5be11770d44aaf Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 18 Jun 2018 17:31:00 -0500 Subject: sync.hh: return cv_status instead of dropping it, in case useful. --- src/libutil/sync.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libutil/sync.hh') diff --git a/src/libutil/sync.hh b/src/libutil/sync.hh index 3b2710f6f..e1d591d77 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 -- cgit v1.2.3