tor-browser

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

pr_init.rst (700B)


      1 PR_Init
      2 =======
      3 
      4 Initializes the runtime.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prinit.h>
     13 
     14   void PR_Init(
     15     PRThreadType type,
     16     PRThreadPriority priority,
     17     PRUintn maxPTDs);
     18 
     19 
     20 Parameters
     21 ~~~~~~~~~~
     22 
     23 :ref:`PR_Init` has the following parameters:
     24 
     25 ``type``
     26   This parameter is ignored.
     27 ``priority``
     28   This parameter is ignored.
     29 ``maxPTDs``
     30   This parameter is ignored.
     31 
     32 
     33 Description
     34 -----------
     35 
     36 NSPR is now implicitly initialized, usually by the first NSPR function
     37 called by a program. :ref:`PR_Init` is necessary only if a program has
     38 specific initialization-sequencing requirements.
     39 
     40 Call :ref:`PR_Init` as follows:
     41 
     42 .. code::
     43 
     44    PR_Init(PR_USER_THREAD, PR_PRIORITY_NORMAL, 0);