pr_getthreadprivate.rst (677B)
1 PR_GetThreadPrivate 2 =================== 3 4 Recovers the per-thread private data for the current thread. 5 6 7 Syntax 8 ------ 9 10 .. code:: 11 12 #include <prthread.h> 13 14 void* PR_GetThreadPrivate(PRUintn index); 15 16 17 Parameter 18 ~~~~~~~~~ 19 20 :ref:`PR_GetThreadPrivate` has the following parameters: 21 22 ``index`` 23 The index into the per-thread private data table. 24 25 26 Returns 27 ~~~~~~~ 28 29 ``NULL`` if the data has not been set. 30 31 32 Description 33 ----------- 34 35 :ref:`PR_GetThreadPrivate` may be called at any time during a thread's 36 execution. A thread can get access only to its own per-thread private 37 data. Do not delete the object that the private data refers to without 38 first clearing the thread's value.