#include <userver/compiler/thread_local.hpp>
The scope that grants access to a thread-local variable.
Definition at line 49 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 166 of file thread_local.hpp.
compiler::ThreadLocalScope< VariableType >::~ThreadLocalScope | ( | ) |
Definition at line 175 of file thread_local.hpp.
|
noexcept |
Access the thread-local variable.
Definition at line 182 of file thread_local.hpp.
|
noexcept |
Access the thread-local variable.
Definition at line 188 of file thread_local.hpp.