tor-browser

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

thread_pools.rst (1018B)


      1 This chapter describes the NSPR API Thread Pools.
      2 
      3 .. note::
      4 
      5   **Note:** This API is a preliminary version in NSPR 4.0 and is
      6   subject to change.
      7 
      8 Thread pools create and manage threads to provide support for scheduling
      9 work (jobs) onto one or more threads. NSPR's thread pool is modeled on
     10 the thread pools described by David R. Butenhof in\ *Programming with
     11 POSIX Threads* (Addison-Wesley, 1997).
     12 
     13 -  `Thread Pool Types <#Thread_Pool_Types>`__
     14 -  `Thread Pool Functions <#Thread_Pool_Functions>`__
     15 
     16 .. _Thread_Pool_Types:
     17 
     18 Thread Pool Types
     19 -----------------
     20 
     21 - :ref:`PRJobIoDesc`
     22 - :ref:`PRJobFn`
     23 - :ref:`PRThreadPool`
     24 - :ref:`PRJob`
     25 
     26 .. _Thread_Pool_Functions:
     27 
     28 Thread Pool Functions
     29 ---------------------
     30 
     31 - :ref:`PR_CreateThreadPool`
     32 - :ref:`PR_QueueJob`
     33 - :ref:`PR_QueueJob_Read`
     34 - :ref:`PR_QueueJob_Write`
     35 - :ref:`PR_QueueJob_Accept`
     36 - :ref:`PR_QueueJob_Connect`
     37 - :ref:`PR_QueueJob_Timer`
     38 - :ref:`PR_CancelJob`
     39 - :ref:`PR_JoinJob`
     40 - :ref:`PR_ShutdownThreadPool`
     41 - :ref:`PR_JoinThreadPool`