Public Member Functions

mozilla::Monitor Class Reference

Monitor Java-like monitor. More...

#include <Monitor.h>

Inheritance diagram for mozilla::Monitor:
Collaboration diagram for mozilla::Monitor:

List of all members.

Public Member Functions

 Monitor (const char *aName)
 Monitor.
 ~Monitor ()
 ~Monitor
void Enter ()
 Enter.
void Exit ()
 Exit.
nsresult Wait (PRIntervalTime interval=0xffffffffUL)
 Wait.
nsresult Notify ()
 Notify.
nsresult NotifyAll ()
 NotifyAll.
void AssertCurrentThreadIn ()
void AssertNotCurrentThreadIn ()

Detailed Description

Monitor Java-like monitor.

When possible, use MonitorAutoEnter to hold this monitor within a scope, instead of calling Enter/Exit directly.


Constructor & Destructor Documentation

mozilla::Monitor::Monitor ( const char *  aName  )  [inline]

Monitor.

Parameters:
aName A name which can reference this monitor
Returns:
If failure, nsnull If success, a valid Monitor*, which must be destroyed by Monitor::DestroyMonitor()
mozilla::Monitor::~Monitor (  )  [inline]

~Monitor


Member Function Documentation

void mozilla::Monitor::AssertCurrentThreadIn (  )  [inline]
void mozilla::Monitor::AssertNotCurrentThreadIn (  )  [inline]
void mozilla::Monitor::Enter (  )  [inline]

Enter.

See also:
prmon.h
void mozilla::Monitor::Exit (  )  [inline]

Exit.

See also:
prmon.h
nsresult mozilla::Monitor::Notify (  )  [inline]

Notify.

See also:
prmon.h
nsresult mozilla::Monitor::NotifyAll (  )  [inline]

NotifyAll.

See also:
prmon.h
nsresult mozilla::Monitor::Wait ( PRIntervalTime  interval = 0xffffffffUL  )  [inline]

Wait.

See also:
prmon.h

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