tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pr_createthreadpool.rst (700B)


      1 PR_CreateThreadPool
      2 ===================
      3 
      4 Create a new hash table.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prtpool.h>
     13 
     14   NSPR_API(PRThreadPool *)
     15   PR_CreateThreadPool(
     16     PRInt32 initial_threads,
     17     PRInt32 max_threads,
     18     PRUint32 stacksize
     19   );
     20 
     21 
     22 Parameters
     23 ~~~~~~~~~~
     24 
     25 The function has the following parameters:
     26 
     27 ``initial_threads``
     28   The number of threads to be created within this thread pool.
     29 ``max_threads``
     30   The limit on the number of threads that will be created to server the
     31   thread pool.
     32 ``stacksize``
     33   Size of the stack allocated to each thread in the thread.
     34 
     35 
     36 Returns
     37 ~~~~~~~
     38 
     39 Pointer to a :ref:`PRThreadPool` structure or ``NULL`` on error.
     40 
     41 
     42 Description
     43 ~~~~~~~~~~~