Go to the source code of this file.
◆ GPR_TLS_CLASS_DECL
#define GPR_TLS_CLASS_DECL |
( |
|
name | ) |
thread_local static intptr_t name |
Use GPR_TLS_CLASS_DECL to declare tls static variable members of a class.
GPR_TLS_CLASS_DEF needs to be called to define this member.
◆ GPR_TLS_CLASS_DEF
#define GPR_TLS_CLASS_DEF |
( |
|
name | ) |
thread_local intptr_t name = 0 |
◆ GPR_TLS_DECL
#define GPR_TLS_DECL |
( |
|
name | ) |
thread_local static intptr_t name = 0 |
Thread local storage based on C++ thread_local.
#include tls.h to use this - and see that file for documentation Use GPR_TLS_DECL to declare tls static variables outside a class
◆ gpr_tls_destroy
#define gpr_tls_destroy |
( |
|
tls | ) |
|
◆ gpr_tls_get
#define gpr_tls_get |
( |
|
tls | ) |
(*(tls)) |
◆ gpr_tls_init
#define gpr_tls_init |
( |
|
tls | ) |
|
◆ gpr_tls_set
#define gpr_tls_set |
( |
|
tls, |
|
|
|
new_value |
|
) |
| (*(tls) = (new_value)) |