aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-06-18 17:31:00 -0500
committerWill Dietz <w@wdtz.org>2018-06-18 17:31:00 -0500
commitf601bc049258ed438aa6f8199c5be11770d44aaf (patch)
treefcaa03b35a0de1a42cd9046bc597d12007af36ee
parentb920b908578d68c7c80f1c1e89c42784693e18d5 (diff)
sync.hh: return cv_status instead of dropping it, in case useful.
-rw-r--r--src/libutil/sync.hh4
1 files changed, 2 insertions, 2 deletions
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<class Rep, class Period>
- void wait_for(std::condition_variable & cv,
+ std::cv_status wait_for(std::condition_variable & cv,
const std::chrono::duration<Rep, Period> & duration)
{
assert(s);
- cv.wait_for(lk, duration);
+ return cv.wait_for(lk, duration);
}
template<class Rep, class Period, class Predicate>