| GRPC Core
    5.0.0
    | 
Go to the source code of this file.
| Data Structures | |
| struct | gpr_pthread_thread_local | 
| Thread local storage based on pthread library calls.  More... | |
| Macros | |
| #define | GPR_TLS_DECL(name) static struct gpr_pthread_thread_local name = {0} | 
| #define | gpr_tls_init(tls) GPR_ASSERT(0 == pthread_key_create(&(tls)->key, NULL)) | 
| #define | gpr_tls_destroy(tls) pthread_key_delete((tls)->key) | 
| #define | gpr_tls_get(tls) ((intptr_t)pthread_getspecific((tls)->key)) | 
| Functions | |
| intptr_t | gpr_tls_set (struct gpr_pthread_thread_local *tls, intptr_t value) | 
| #define GPR_TLS_DECL | ( | name | ) | static struct gpr_pthread_thread_local name = {0} | 
| #define gpr_tls_destroy | ( | tls | ) | pthread_key_delete((tls)->key) | 
| #define gpr_tls_get | ( | tls | ) | ((intptr_t)pthread_getspecific((tls)->key)) | 
| #define gpr_tls_init | ( | tls | ) | GPR_ASSERT(0 == pthread_key_create(&(tls)->key, NULL)) | 
| intptr_t gpr_tls_set | ( | struct gpr_pthread_thread_local * | tls, | 
| intptr_t | value | ||
| ) | 
 1.8.6
 1.8.6