.. index:: pair: class; EE::System::ThreadLocal .. _doxid-class_e_e_1_1_system_1_1_thread_local: class EE::System::ThreadLocal ============================= .. toctree:: :hidden: Overview ~~~~~~~~ Defines variables with thread-local storage. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ThreadLocal: private :ref:`EE::NonCopyable` { public: // construction :ref:`ThreadLocal`(void* value = NULL); :target:`~ThreadLocal`(); // methods void :ref:`setValue`(void* value); void* :ref:`getValue`() const; }; .. _details-class_e_e_1_1_system_1_1_thread_local: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Defines variables with thread-local storage. Construction ------------ .. index:: pair: function; ThreadLocal .. _doxid-class_e_e_1_1_system_1_1_thread_local_1a35174aa09aca78cf5db67019fedc6c3a: .. ref-code-block:: cpp :class: doxyrest-title-code-block ThreadLocal(void* value = NULL) Default constructor. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - value - Optional value to initalize the variable Methods ------- .. index:: pair: function; setValue .. _doxid-class_e_e_1_1_system_1_1_thread_local_1aec904041ecc58c684141a926aa79698c: .. ref-code-block:: cpp :class: doxyrest-title-code-block void setValue(void* value) Set the thread-specific value of the variable. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - value - Value of the variable for the current thread .. index:: pair: function; getValue .. _doxid-class_e_e_1_1_system_1_1_thread_local_1ae9e01fa82486a92f1697387c2d6b16d6: .. ref-code-block:: cpp :class: doxyrest-title-code-block void* getValue() const Retrieve the thread-specific value of the variable. .. rubric:: Returns: Value of the variable for the current thread