mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +02:00
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>
|
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)
|
const std::chrono::duration<Rep, Period> & duration)
|
||||||
{
|
{
|
||||||
assert(s);
|
assert(s);
|
||||||
cv.wait_for(lk, duration);
|
return cv.wait_for(lk, duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class Rep, class Period, class Predicate>
|
template<class Rep, class Period, class Predicate>
|
||||||
|
|
Loading…
Reference in a new issue