uvw 3.1.0
|
The thread local storage wrapper. More...
#include <thread.h>
Public Member Functions | |
template<typename T > | |
T * | get () noexcept |
Gets the value of a given variable. | |
template<typename T > | |
void | set (T *value) noexcept |
Sets the value of a given variable. | |
Public Member Functions inherited from uvw::uv_type< uv_key_t > | |
virtual int | init () |
Initializes the handle. | |
loop & | parent () const noexcept |
Gets the loop from which the resource was originated. | |
const uv_key_t * | raw () const noexcept |
Gets the underlying raw data structure. | |
uv_key_t * | raw () noexcept |
Gets the underlying raw data structure. | |
The thread local storage wrapper.
A storage area that can only be accessed by one thread. The variable can be seen as a global variable that is only visible to a particular thread and not the whole program.
|
inlinenoexcept |
|
inlinenoexcept |