pr_jointhreadpool.rst (482B)
1 PR_JoinThreadPool 2 ================= 3 4 Waits for all threads in a thread pool to complete, then releases 5 resources allocated to the thread pool. 6 7 8 Syntax 9 ------ 10 11 .. code:: 12 13 #include <prtpool.h> 14 15 NSPR_API(PRStatus) PR_JoinThreadPool( PRThreadPool *tpool ); 16 17 18 Parameter 19 ~~~~~~~~~ 20 21 The function has the following parameter: 22 23 ``tpool`` 24 A pointer to a :ref:`PRThreadPool` structure previously created by a 25 call to :ref:`PR_CreateThreadPool`. 26 27 28 Returns 29 ~~~~~~~ 30 31 :ref:`PRStatus`