#include <userver/compiler/thread_local.hpp>
The scope that grants access to a thread-local variable.
Definition at line 50 of file thread_local.hpp.
Public Member Functions | |
ThreadLocalScope (ThreadLocalScope &&)=delete | |
ThreadLocalScope & | operator= (ThreadLocalScope &&)=delete |
VariableType & | operator* () &noexcept USERVER_IMPL_LIFETIME_BOUND |
Access the thread-local variable. | |
VariableType * | operator-> () &noexcept USERVER_IMPL_LIFETIME_BOUND |
Access the thread-local variable. | |
|
deletenoexcept |
Definition at line 161 of file thread_local.hpp.
compiler::ThreadLocalScope< VariableType >::~ThreadLocalScope | ( | ) |
Definition at line 168 of file thread_local.hpp.
|
noexcept |
Access the thread-local variable.
Definition at line 175 of file thread_local.hpp.
|
noexcept |
Access the thread-local variable.
Definition at line 181 of file thread_local.hpp.