Public Member Functions

mozilla::CondVar Class Reference

CondVar Vanilla condition variable. More...

#include <CondVar.h>

Inheritance diagram for mozilla::CondVar:
Collaboration diagram for mozilla::CondVar:

List of all members.

Public Member Functions

 CondVar (Mutex &aLock, const char *aName)
 CondVar.
 ~CondVar ()
 ~CondVar Clean up after this CondVar, but NOT its associated Mutex.
nsresult Wait (PRIntervalTime interval=0xffffffffUL)
 Wait.
nsresult Notify ()
 Notify.
nsresult NotifyAll ()
 NotifyAll.
void AssertCurrentThreadOwnsMutex ()
void AssertNotCurrentThreadOwnsMutex ()

Detailed Description

CondVar Vanilla condition variable.

Please don't use this unless you have a compelling reason --- Monitor provides a better API.


Constructor & Destructor Documentation

mozilla::CondVar::CondVar ( Mutex aLock,
const char *  aName 
) [inline]

CondVar.

The CALLER owns |lock|.

Parameters:
aLock A Mutex to associate with this condition variable.
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::CondVar::~CondVar (  )  [inline]

~CondVar Clean up after this CondVar, but NOT its associated Mutex.


Member Function Documentation

void mozilla::CondVar::AssertCurrentThreadOwnsMutex (  )  [inline]
void mozilla::CondVar::AssertNotCurrentThreadOwnsMutex (  )  [inline]
nsresult mozilla::CondVar::Notify (  )  [inline]

Notify.

See also:
prcvar.h
nsresult mozilla::CondVar::NotifyAll (  )  [inline]

NotifyAll.

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

Wait.

See also:
prcvar.h

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