tor-browser

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

pr_newlock.rst (425B)


      1 PR_NewLock
      2 ==========
      3 
      4 Creates a new lock.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prlock.h>
     13 
     14   PRLock* PR_NewLock(void);
     15 
     16 
     17 Returns
     18 ~~~~~~~
     19 
     20 The function returns one of the following values:
     21 
     22 -  If successful, a pointer to the new lock object.
     23 -  If unsuccessful (for example, the lock cannot be created because of
     24   resource constraints), ``NULL``.
     25 
     26 
     27 Description
     28 -----------
     29 
     30 :ref:`PR_NewLock` creates a new opaque lock.