Bug 1885489 - Part 9: Add SnapshotIterator::readObject(). r=iain
[gecko.git] / docs / nspr / reference / pr_destroymonitor.rst
blob4d9d9e58ac972696bae6a662a364bf697faacefb
1 PR_DestroyMonitor
2 =================
4 Destroys a monitor object.
7 Syntax
8 ------
10 .. code::
12    #include <prmon.h>
14    void PR_DestroyMonitor(PRMonitor *mon);
17 Parameter
18 ~~~~~~~~~
20 The function has the following parameter:
22 ``mon``
23    A reference to an existing structure of type :ref:`PRMonitor`.
26 Description
27 -----------
29 The caller is responsible for guaranteeing that the monitor is no longer
30 in use before calling :ref:`PR_DestroyMonitor`. There must be no thread
31 (including the calling thread) in the monitor or waiting on the monitor.