Mstdlib-1.24.0
|
Typedefs | |
typedef M_uint64 | M_thread_tls_key_t |
Functions | |
M_thread_tls_key_t | M_thread_tls_key_create (void(*destructor)(void *)) |
M_bool | M_thread_tls_setspecific (M_thread_tls_key_t key, const void *value) |
void * | M_thread_tls_getspecific (M_thread_tls_key_t key) |
Thread Local Storage
typedef M_uint64 M_thread_tls_key_t |
Thread local storage key.
M_thread_tls_key_t M_thread_tls_key_create | ( | void(*)(void *) | destructor | ) |
Create a key for storing data in thread local storage.
destructor | The destructor to call to destroy the stored value at the returned key. Optional, use NULL if not needed. |
M_bool M_thread_tls_setspecific | ( | M_thread_tls_key_t | key, |
const void * | value | ||
) |
Set the key for the current thread to the given value.
[in] | key | The key. |
[in] | value | The value to store. |
void * M_thread_tls_getspecific | ( | M_thread_tls_key_t | key | ) |
Get the value fro a given key.
[in] | key | The key. |