sync.hh: return cv_status instead of dropping it, in case useful.

This commit is contained in:
Will Dietz 2018-06-18 17:31:00 -05:00
parent b920b90857
commit f601bc0492

View file

@ -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>