#include <stdbool.h>
#include <grpc/support/log.h>
Go to the source code of this file.
#define GPR_TLS_DECL |
( |
|
name | ) |
|
Value:static bool name##_inited = false; \
Thread local storage based on gcc compiler primitives.
Definition: tls_gcc.h:46
#define gpr_tls_destroy |
( |
|
tls | ) |
|
Value:
} while (0)
bool * inited
Definition: tls_gcc.h:48
#define GPR_ASSERT(x)
abort() the process if x is zero, having written a line to the log.
Definition: log.h:106
It is allowed to call gpr_tls_init after gpr_tls_destroy is called.
#define gpr_tls_get |
( |
|
tls | ) |
|
Value:
})
bool * inited
Definition: tls_gcc.h:48
#define GPR_ASSERT(x)
abort() the process if x is zero, having written a line to the log.
Definition: log.h:106
intptr_t value
Definition: tls_gcc.h:47
#define gpr_tls_init |
( |
|
tls | ) |
|
Value:
} while (0)
bool * inited
Definition: tls_gcc.h:48
#define GPR_ASSERT(x)
abort() the process if x is zero, having written a line to the log.
Definition: log.h:106
#define gpr_tls_set |
( |
|
tls, |
|
|
|
new_value |
|
) |
| |
Value:
(tls)->
value = (new_value); \
} while (0)
bool * inited
Definition: tls_gcc.h:48
#define GPR_ASSERT(x)
abort() the process if x is zero, having written a line to the log.
Definition: log.h:106
intptr_t value
Definition: tls_gcc.h:47