|
ThreadSchedule 2.0.0
Modern C++ thread management library
|
Snapshot of metadata for a single registered thread. More...
#include <thread_registry.hpp>
Public Attributes | |
| Tid | tid {} |
| std::thread::id | stdId |
| std::string | name |
| std::string | componentTag |
| bool | alive {true} |
| std::shared_ptr< class ThreadControlBlock > | control |
Snapshot of metadata for a single registered thread.
This is a POD-like value type that captures thread identity, lifecycle state, and an optional handle to the underlying ThreadControlBlock. Instances are returned by ThreadRegistry queries and are safe to store, copy, and inspect from any thread.
control shared_ptr is ref-counted and the pointee (ThreadControlBlock) is itself thread-safe.alive flag reflects the state at the time the snapshot was taken; it is not updated retroactively when the thread unregisters.tid - OS-level thread identifier (pid_t on Linux via gettid(), DWORD on Windows).stdId - The corresponding std::thread::id.name - Human-readable name given at registration time.componentTag - Optional logical grouping tag (e.g. "io", "compute").alive - true while the thread is registered; set to false when the thread calls unregister_current_thread().control - Shared pointer to the thread's ThreadControlBlock. May be nullptr if the thread was registered without a control block (i.e. via the name-only overload of register_current_thread()). Definition at line 86 of file thread_registry.hpp.
| bool threadschedule::RegisteredThreadInfo::alive {true} |
Definition at line 92 of file thread_registry.hpp.
Referenced by threadschedule::ThreadRegistry::register_current_thread(), and threadschedule::ThreadRegistry::register_current_thread().
| std::string threadschedule::RegisteredThreadInfo::componentTag |
Definition at line 91 of file thread_registry.hpp.
Referenced by threadschedule::ThreadRegistry::register_current_thread(), and threadschedule::ThreadRegistry::register_current_thread().
| std::shared_ptr<class ThreadControlBlock> threadschedule::RegisteredThreadInfo::control |
Definition at line 93 of file thread_registry.hpp.
Referenced by threadschedule::ThreadRegistry::register_current_thread().
| std::string threadschedule::RegisteredThreadInfo::name |
Definition at line 90 of file thread_registry.hpp.
Referenced by threadschedule::ThreadRegistry::register_current_thread(), and threadschedule::ThreadRegistry::register_current_thread().
| std::thread::id threadschedule::RegisteredThreadInfo::stdId |
Definition at line 89 of file thread_registry.hpp.
Referenced by threadschedule::ThreadRegistry::register_current_thread(), and threadschedule::ThreadRegistry::register_current_thread().
| Tid threadschedule::RegisteredThreadInfo::tid {} |
Definition at line 88 of file thread_registry.hpp.
Referenced by threadschedule::ChaosController::operator=(), threadschedule::ThreadRegistry::register_current_thread(), and threadschedule::ThreadRegistry::register_current_thread().