prthreadprivatedtor.rst (585B)
1 PRThreadPrivateDTOR 2 =================== 3 4 The destructor function passed to PR_NewThreadPrivateIndex that is 5 associated with the resulting thread private index. 6 7 8 Syntax 9 ------ 10 11 .. code:: 12 13 #include <prthread.h> 14 15 typedef void (PR_CALLBACK *PRThreadPrivateDTOR)(void *priv); 16 17 18 Description 19 ~~~~~~~~~~~ 20 21 Until the data associated with an index is actually set with a call to 22 :ref:`PR_SetThreadPrivate`, the value of the data is ``NULL``. If the data 23 associated with the index is not ``NULL``, NSPR passes a reference to 24 the data to the destructor function when the thread terminates.