|
threadman 0.1.0
Header-only C++23 managed threads, dynamic pools, futures, and executors
|
A point-in-time snapshot of a ManagedThread's control block.
More...
#include <stats.hpp>

Public Attributes | |
| std::uint64_t | id = 0 |
| Monotonic per-process id. | |
| std::string | name |
| User-chosen name. | |
| std::uint64_t | native_id = 0 |
| OS-level thread id, when known. | |
| std::optional< std::uint64_t > | pool_id |
| Owning pool, when this is a pool worker. | |
| ThreadState | state = ThreadState::Starting |
| std::chrono::nanoseconds | run_duration {0} |
| Time the body has been running (or ran). | |
| bool | failed = false |
True iff state == Failed. | |
| bool | is_core = true |
| Pool worker: not subject to idle retirement. | |
A point-in-time snapshot of a ManagedThread's control block.
| bool threadman::ThreadSnapshot::failed = false |
True iff state == Failed.
| std::uint64_t threadman::ThreadSnapshot::id = 0 |
Monotonic per-process id.
| bool threadman::ThreadSnapshot::is_core = true |
Pool worker: not subject to idle retirement.
| std::string threadman::ThreadSnapshot::name |
User-chosen name.
| std::uint64_t threadman::ThreadSnapshot::native_id = 0 |
OS-level thread id, when known.
| std::optional<std::uint64_t> threadman::ThreadSnapshot::pool_id |
Owning pool, when this is a pool worker.
| std::chrono::nanoseconds threadman::ThreadSnapshot::run_duration {0} |
Time the body has been running (or ran).
| ThreadState threadman::ThreadSnapshot::state = ThreadState::Starting |