|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Thread descriptor containing thread-specific attributes and CPU register context access. More...
#include <thread.hpp>

Classes | |
| struct | metadata_state |
| Stack iteration state supporting phase transition from core to extended properties. More... | |
Public Member Functions | |
| constexpr metadata_map | make_metadata_view (metadata_state &the_state) const &noexcept RELOCO_LIFETIMEBOUND |
| Exposes a unified metadata_map view that automatically forwards from core thread properties to any attached extended metadata source. | |
| metadata_map | make_metadata_view (metadata_state &) const &&=delete |
Public Attributes | |
| uint64_t | thread_id {0} |
| string_view | name {} |
| uint8_t | priority {0} |
| thread_state | state {thread_state::ready} |
| uint32_t | cpu_ticks {0} |
| uint32_t | stack_size {0} |
| uint32_t | stack_usage {0} |
| register_context_ref | regs {} |
| metadata_next_fn_t | extended_metadata_fn {nullptr} |
| void * | extended_metadata_ctx {nullptr} |
Thread descriptor containing thread-specific attributes and CPU register context access.
|
delete |
|
inlineconstexprnoexcept |
Exposes a unified metadata_map view that automatically forwards from core thread properties to any attached extended metadata source.
| uint32_t microfmt::thread_info::cpu_ticks {0} |
| void* microfmt::thread_info::extended_metadata_ctx {nullptr} |
| metadata_next_fn_t microfmt::thread_info::extended_metadata_fn {nullptr} |
| string_view microfmt::thread_info::name {} |
| uint8_t microfmt::thread_info::priority {0} |
| register_context_ref microfmt::thread_info::regs {} |
| uint32_t microfmt::thread_info::stack_size {0} |
| uint32_t microfmt::thread_info::stack_usage {0} |
| thread_state microfmt::thread_info::state {thread_state::ready} |
| uint64_t microfmt::thread_info::thread_id {0} |