|
ThreadSchedule 1.0.0
Modern C++ thread management library
|
RAII guard that registers the current thread on construction and unregisters it on destruction. More...
#include <thread_registry.hpp>
Public Member Functions | |
| AutoRegisterCurrentThread (std::string const &name=std::string(), std::string const &componentTag=std::string()) | |
| AutoRegisterCurrentThread (ThreadRegistry ®, std::string const &name=std::string(), std::string const &componentTag=std::string()) | |
| AutoRegisterCurrentThread (AutoRegisterCurrentThread const &)=delete | |
| auto | operator= (AutoRegisterCurrentThread const &) -> AutoRegisterCurrentThread &=delete |
| AutoRegisterCurrentThread (AutoRegisterCurrentThread &&other) noexcept | |
| auto | operator= (AutoRegisterCurrentThread &&other) noexcept -> AutoRegisterCurrentThread & |
RAII guard that registers the current thread on construction and unregisters it on destruction.
AutoRegisterCurrentThread creates a ThreadControlBlock for the calling thread, sets its OS-visible name via ThreadControlBlock::set_name(), and registers it in either the global registry() or a caller-supplied ThreadRegistry.
ThreadRegistry&, that registry must outlive this guard.Definition at line 1026 of file thread_registry.hpp.
|
inlineexplicit |
Definition at line 1029 of file thread_registry.hpp.
|
inlineexplicit |
Definition at line 1038 of file thread_registry.hpp.
|
inline |
Definition at line 1046 of file thread_registry.hpp.
|
inlinenoexcept |
Definition at line 1058 of file thread_registry.hpp.
|
inlinenoexcept |
Definition at line 1064 of file thread_registry.hpp.