ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
indefinite_wait.hpp
Go to the documentation of this file.
1#pragma once
2
7#include <condition_variable>
8
10{
11
13{
14 template <typename Lock, typename Pred>
15 static auto
16 wait(std::condition_variable& cv, Lock& lock, Pred pred) -> bool
17 {
18 cv.wait(lock, pred);
19 return true;
20 }
21};
22
23} // namespace threadschedule::detail
Aggregates multiple thread_registry_backend instances into a single queryable view.
static auto wait(std::condition_variable &cv, Lock &lock, Pred pred) -> bool