20 std::string
const& component = std::string())
25 (void)block->set_name(name);
26 active_ = registry_->register_guard(block, name, component);
27 control_ = std::move(block);
31 std::string
const& component = std::string())
36 (void)block->set_name(name);
37 active_ = registry_->register_guard(block, name, component);
38 control_ = std::move(block);
43 registry_->unregister_thread(tid_, control_.get());
48 : active_(
other.active_), registry_(
other.registry_), tid_(
other.tid_), control_(std::move(
other.control_))
50 other.active_ =
false;
51 other.registry_ =
nullptr;
60 registry_->unregister_thread(tid_, control_.get());
61 active_ =
other.active_;
62 registry_ =
other.registry_;
64 control_ = std::move(
other.control_);
65 other.active_ =
false;
66 other.registry_ =
nullptr;
73 bool active_{
false };
74 thread_registry_backend* registry_{
nullptr };
76 std::shared_ptr<thread_control_block> control_;
Internal movable RAII guard for worker registration.
auto operator=(registration_guard_backend const &) -> registration_guard_backend &=delete
registration_guard_backend(thread_registry_backend ®, std::string const &name=std::string(), std::string const &component=std::string())
registration_guard_backend(registration_guard_backend &&other) noexcept
~registration_guard_backend()
registration_guard_backend(std::string const &name=std::string(), std::string const &component=std::string())
auto operator=(registration_guard_backend &&other) noexcept -> registration_guard_backend &
registration_guard_backend(registration_guard_backend const &)=delete
static auto create_for_current_thread() -> std::shared_ptr< thread_control_block >
Central registry of threads indexed by OS-level thread ID (native_thread_id).
Aggregates multiple thread_registry_backend instances into a single queryable view.
@ other
Standard round-robin time-sharing.
auto runtime_registry() -> thread_registry_backend &
Registry storage, mutation, snapshots, and private runtime hooks.