ThreadSchedule 1.0.0
Modern C++ thread management library
|
Classes | |
class | QueryView |
Public Member Functions | |
ThreadRegistry (ThreadRegistry const &)=delete | |
auto | operator= (ThreadRegistry const &) -> ThreadRegistry &=delete |
void | register_current_thread (std::string name=std::string(), std::string componentTag=std::string()) |
void | register_current_thread (std::shared_ptr< ThreadControlBlock > const &controlBlock, std::string name=std::string(), std::string componentTag=std::string()) |
void | unregister_current_thread () |
auto | get (Tid tid) const -> std::optional< RegisteredThreadInfo > |
auto | query () const -> QueryView |
template<typename Predicate> | |
auto | filter (Predicate &&pred) const -> QueryView |
auto | count () const -> size_t |
auto | empty () const -> bool |
template<typename Fn> | |
void | for_each (Fn &&fn) const |
template<typename Predicate, typename Fn> | |
void | apply (Predicate &&pred, Fn &&fn) const |
template<typename Fn> | |
auto | map (Fn &&fn) const -> std::vector< std::invoke_result_t< Fn, RegisteredThreadInfo const & > > |
template<typename Predicate> | |
auto | find_if (Predicate &&pred) const -> std::optional< RegisteredThreadInfo > |
template<typename Predicate> | |
auto | any (Predicate &&pred) const -> bool |
template<typename Predicate> | |
auto | all (Predicate &&pred) const -> bool |
template<typename Predicate> | |
auto | none (Predicate &&pred) const -> bool |
auto | take (size_t n) const -> QueryView |
auto | skip (size_t n) const -> QueryView |
auto | set_affinity (Tid tid, ThreadAffinity const &affinity) const -> expected< void, std::error_code > |
auto | set_priority (Tid tid, ThreadPriority priority) const -> expected< void, std::error_code > |
auto | set_scheduling_policy (Tid tid, SchedulingPolicy policy, ThreadPriority priority) const -> expected< void, std::error_code > |
auto | set_name (Tid tid, std::string const &name) const -> expected< void, std::error_code > |
void | set_on_register (std::function< void(RegisteredThreadInfo const &)> cb) |
void | set_on_unregister (std::function< void(RegisteredThreadInfo const &)> cb) |
Definition at line 221 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 500 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 494 of file thread_registry.hpp.
|
inline |
Definition at line 476 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 459 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 464 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 454 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 488 of file thread_registry.hpp.
|
inline |
Definition at line 470 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 311 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 482 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 506 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 441 of file thread_registry.hpp.
|
inline |
Definition at line 260 of file thread_registry.hpp.
|
inline |
Definition at line 229 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 521 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 546 of file thread_registry.hpp.
|
inline |
Definition at line 555 of file thread_registry.hpp.
|
inline |
Definition at line 561 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 529 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 537 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 516 of file thread_registry.hpp.
|
inlinenodiscard |
Definition at line 511 of file thread_registry.hpp.
|
inline |
Definition at line 291 of file thread_registry.hpp.