tor-browser

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

pr_newmonitor.rst (538B)


      1 PR_NewMonitor
      2 =============
      3 
      4 Creates a new monitor object. The caller is responsible for the object
      5 and is expected to destroy it when appropriate.
      6 
      7 
      8 Syntax
      9 ------
     10 
     11 .. code::
     12 
     13   #include <prmon.h>
     14 
     15   PRMonitor* PR_NewMonitor(void);
     16 
     17 
     18 Returns
     19 ~~~~~~~
     20 
     21 The function returns one of the following values:
     22 
     23 -  If successful, a pointer to a :ref:`PRMonitor` object.
     24 -  If unsuccessful (for example, if some operating system resource is
     25   unavailable), ``NULL``.
     26 
     27 
     28 Description
     29 -----------
     30 
     31 A newly created monitor has an entry count of zero.