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
9
namespace
threadschedule::detail
10
{
11
12
struct
indefinite_wait
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
threadschedule::detail
Aggregates multiple thread_registry_backend instances into a single queryable view.
Definition
native_thread.hpp:20
threadschedule::detail::indefinite_wait
Definition
indefinite_wait.hpp:13
threadschedule::detail::indefinite_wait::wait
static auto wait(std::condition_variable &cv, Lock &lock, Pred pred) -> bool
Definition
indefinite_wait.hpp:16
include
threadschedule
detail
pool
indefinite_wait.hpp
Generated by
1.9.8