diff options
author | Will Dietz <w@wdtz.org> | 2018-06-18T22·31-0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-06-18T22·31-0500 |
commit | f601bc049258ed438aa6f8199c5be11770d44aaf (patch) | |
tree | fcaa03b35a0de1a42cd9046bc597d12007af36ee /src/libutil | |
parent | b920b908578d68c7c80f1c1e89c42784693e18d5 (diff) |
sync.hh: return cv_status instead of dropping it, in case useful.
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/sync.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/sync.hh b/src/libutil/sync.hh index 3b2710f6fd30..e1d591d77a84 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> |