|
ThreadSchedule 2.0.0
Modern C++ thread management library
|
Aggregates multiple ThreadRegistry instances into a single queryable view. More...
#include <thread_registry.hpp>
Public Member Functions | |
| void | attach (ThreadRegistry *reg) |
| auto | query () const -> ThreadRegistry::QueryView |
| Public Member Functions inherited from threadschedule::detail::QueryFacadeMixin< CompositeThreadRegistry > | |
| auto | filter (Predicate &&pred) const |
| auto | count () const -> size_t |
| auto | empty () const -> bool |
| void | for_each (Fn &&fn) const |
| void | apply (Predicate &&pred, Fn &&fn) const |
| auto | map (Fn &&fn) const -> std::vector< std::invoke_result_t< Fn, RegisteredThreadInfo const & > > |
| auto | find_if (Predicate &&pred) const -> std::optional< RegisteredThreadInfo > |
| auto | any (Predicate &&pred) const -> bool |
| auto | all (Predicate &&pred) const -> bool |
| auto | none (Predicate &&pred) const -> bool |
| auto | take (size_t n) const |
| auto | skip (size_t n) const |
Aggregates multiple ThreadRegistry instances into a single queryable view.
CompositeThreadRegistry is useful when threads are spread across several independent ThreadRegistry instances (e.g. one per shared library) and you want a unified query interface over all of them.
std::mutex.std::mutex).Definition at line 802 of file thread_registry.hpp.
|
inline |
Definition at line 805 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 813 of file thread_registry.hpp.