Public Member Functions

mozilla::MonitorAutoEnter Class Reference

MonitorAutoEnter Enters the Monitor when it enters scope, and exits it when it leaves scope. More...

#include <Monitor.h>

Collaboration diagram for mozilla::MonitorAutoEnter:

List of all members.

Public Member Functions

 MonitorAutoEnter (mozilla::Monitor &aMonitor)
 Constructor The constructor aquires the given lock.
 ~MonitorAutoEnter (void)
nsresult Wait (PRIntervalTime interval=0xffffffffUL)
nsresult Notify ()
nsresult NotifyAll ()

Detailed Description

MonitorAutoEnter Enters the Monitor when it enters scope, and exits it when it leaves scope.

MUCH PREFERRED to bare calls to Monitor.Enter and Exit.


Constructor & Destructor Documentation

mozilla::MonitorAutoEnter::MonitorAutoEnter ( mozilla::Monitor aMonitor  )  [inline]

Constructor The constructor aquires the given lock.

The destructor releases the lock.

Parameters:
aMonitor A valid mozilla::Monitor* returned by mozilla::Monitor::NewMonitor.
mozilla::MonitorAutoEnter::~MonitorAutoEnter ( void   )  [inline]

Member Function Documentation

nsresult mozilla::MonitorAutoEnter::Notify (  )  [inline]
nsresult mozilla::MonitorAutoEnter::NotifyAll (  )  [inline]
nsresult mozilla::MonitorAutoEnter::Wait ( PRIntervalTime  interval = 0xffffffffUL  )  [inline]

The documentation for this class was generated from the following file: