1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 19:57:59 +02:00

Add some functions needed by hydra

This commit is contained in:
Eelco Dolstra 2016-10-12 15:49:37 +02:00
parent edf9eb8181
commit 82e2a070e0
3 changed files with 17 additions and 0 deletions

View file

@ -54,6 +54,14 @@ public:
cv.wait(lk);
}
template<class Rep, class Period>
void wait_for(std::condition_variable & cv,
const std::chrono::duration<Rep, Period> & duration)
{
assert(s);
cv.wait_for(lk, duration);
}
template<class Rep, class Period, class Predicate>
bool wait_for(std::condition_variable & cv,
const std::chrono::duration<Rep, Period> & duration,