mozilla::Monitor is a bare wrapper around
PRMonitor. Please see Introduction_to_NSPR for a high-level summary of its semantics.
Enter the monitor.
Exit the monitor.
nsresult Wait( in PRIntervalTime interval = PR_INTERVAL_NO_TIMEOUT );
Wait on this monitor until it is
Notify one thread waiting on this monitor.
Notify all threads waiting on this monitor.
Assert that the current thread is in this monitor. Does not incur a runtime penalty in optimized builds.
Assert that the current thread is not in this monitor. Does not incur a runtime penalty in optimized builds.