sync.hh: return cv_status instead of dropping it, in case useful.
This commit is contained in:
parent
b920b90857
commit
f601bc0492
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue