class EE::System::ThreadLocal¶
Overview¶
Defines variables with thread-local storage. More…
#include <threadlocal.hpp> class ThreadLocal: private EE::NonCopyable { public: // construction ThreadLocal(void* value = NULL); ~ThreadLocal(); // methods void setValue(void* value); void* getValue() const; };
Detailed Documentation¶
Defines variables with thread-local storage.
Construction¶
ThreadLocal(void* value = NULL)
Default constructor.
Parameters:
value |
Optional value to initalize the variable |
Methods¶
void setValue(void* value)
Set the thread-specific value of the variable.
Parameters:
value |
Value of the variable for the current thread |
void* getValue() const
Retrieve the thread-specific value of the variable.
Returns:
Value of the variable for the current thread