|
ThreadSchedule 2.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 (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 875 of file thread_registry.hpp.
|
inlineexplicit |
Definition at line 878 of file thread_registry.hpp.
References threadschedule::ThreadControlBlock::create_for_current_thread(), and threadschedule::registry().
Referenced by AutoRegisterCurrentThread(), AutoRegisterCurrentThread(), operator=(), and operator=().
|
inlineexplicit |
Definition at line 887 of file thread_registry.hpp.
References threadschedule::ThreadControlBlock::create_for_current_thread().
|
inline |
Definition at line 895 of file thread_registry.hpp.
References threadschedule::registry().
|
delete |
References AutoRegisterCurrentThread().
|
inlinenoexcept |
Definition at line 907 of file thread_registry.hpp.
References AutoRegisterCurrentThread().
|
inlinenoexcept |
Definition at line 913 of file thread_registry.hpp.
References AutoRegisterCurrentThread(), and threadschedule::registry().
|
delete |
References AutoRegisterCurrentThread().