userver: userver/compiler/thread_local.hpp File Reference
Loading...
Searching...
No Matches
thread_local.hpp File Reference

Detailed Description

Utilities for using thread-local variables in a coroutine-safe way.

Definition in file thread_local.hpp.

Go to the source code of this file.

#include <type_traits>
#include <userver/compiler/impl/constexpr.hpp>
#include <userver/compiler/impl/lifetime.hpp>
#include <userver/compiler/impl/tls.hpp>
+ Include dependency graph for thread_local.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

class  compiler::ThreadLocalScope< VariableType >
 The scope that grants access to a thread-local variable. More...
 
class  compiler::ThreadLocal< VariableType, Factory >
 Creates a unique thread-local variable that can be used in a coroutine-safe manner. More...
 

Namespaces

namespace  compiler
 Compiler and C++ language related tweaks.
 

Functions

template<typename Factory >
 compiler::ThreadLocal (Factory factory) -> ThreadLocal< std::invoke_result_t< const Factory & >, Factory >