59 std::lock_guard<std::mutex>
lock(mutex_);
60 registries_.push_back(
reg);
66 std::vector<registered_thread_info_backend>
merged;
67 std::vector<thread_registry_backend*>
regs;
69 std::lock_guard<std::mutex>
lock(mutex_);
74 auto view =
r->query();
75 auto const& entries =
view.entries();
76 merged.insert(
merged.end(), entries.begin(), entries.end());
82 mutable std::mutex mutex_;
83 std::vector<thread_registry_backend*> registries_;
auto query() const -> thread_registry_backend::query_view
void attach(thread_registry_backend *reg)
CRTP mixin that provides functional-style query facade methods.
auto map(Fn &&fn) const -> std::vector< std::invoke_result_t< Fn, registered_thread_info_backend const & > >
Lazy, functional-style query/filter view over a snapshot of registered threads.
Central registry of threads indexed by OS-level thread ID (native_thread_id).
Registry storage, mutation, snapshots, and private runtime hooks.