|
libhatchet
|
#include <hxthread.hpp>
Public Member Functions | |
| hxthread_local (void) | |
| ~hxthread_local () | |
| operator T (void) | |
| void | operator= (T local_) |
hxthread_local - Provides thread-local storage for an integer or a pointer.
The default value must be zero or null. This class is available for compatibility when threading is off. The design has been simplified to avoid heap allocations and callbacks into the memory manager after the main thread exits.
|
inlineexplicit |
Construct to 0 or null.
|
inline |
Frees resources.
|
inline |
Returns the thread-local value.
|
inline |
Sets the thread-local value. This is a form of "mutable when const.".