tor-browser

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

prthread.rst (524B)


      1 PRThread
      2 ========
      3 
      4 An NSPR thread.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prthread.h>
     13 
     14   typedef struct PRThread PRThread;
     15 
     16 
     17 Description
     18 ~~~~~~~~~~~
     19 
     20 In NSPR, a thread is represented by a pointer to an opaque structure of
     21 type :ref:`PRThread`. This pointer is a required parameter for most of the
     22 functions that operate on threads.
     23 
     24 A ``PRThread*`` is the successful result of creating a new thread. The
     25 identifier remains valid until it returns from its root function and, if
     26 the thread was created joinable, is joined.