|
ThreadSchedule 3.0.0
Modern C++ thread management library
|
Temporarily bind an owning registry as the global external registry. More...
#include <thread_registry.hpp>
Public Member Functions | |
| global_registry_binding (thread_registry ®istry) | |
| Install external binding. | |
| ~global_registry_binding () | |
| global_registry_binding (global_registry_binding const &)=delete | |
| auto | operator= (global_registry_binding const &) -> global_registry_binding &=delete |
| global_registry_binding (global_registry_binding &&other) noexcept | |
| auto | operator= (global_registry_binding &&other) noexcept -> global_registry_binding & |
Temporarily bind an owning registry as the global external registry.
Restores the previous binding on destruction.
Installing, moving, or destroying a binding, and move-assigning a bound registry, must not run concurrently with operations through global_registry. Bindings are intended to be installed during application startup and destroyed after worker threads have stopped using the global registry.
Definition at line 358 of file thread_registry.hpp.
|
inlineexplicit |
Install external binding.
| registry | Owning registry instance. |
| std::invalid_argument | if registry is itself the global facade. |
Definition at line 366 of file thread_registry.hpp.
References threadschedule::detail::runtime_exchange_external_registry_state().
|
inline |
Definition at line 376 of file thread_registry.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 384 of file thread_registry.hpp.
|
inlinenoexcept |
Definition at line 390 of file thread_registry.hpp.
|
delete |