Public Member Functions | Friends

mozilla::Mutex Class Reference

Mutex When possible, use MutexAutoLock/MutexAutoUnlock to lock/unlock this mutex within a scope, instead of calling Lock/Unlock directly. More...

#include <Mutex.h>

Inheritance diagram for mozilla::Mutex:
Collaboration diagram for mozilla::Mutex:

List of all members.

Public Member Functions

 Mutex (const char *name)
 Mutex.
 ~Mutex ()
 ~Mutex
void Lock ()
 Lock.
void Unlock ()
 Unlock.
void AssertCurrentThreadOwns ()
 AssertCurrentThreadOwns.
void AssertNotCurrentThreadOwns ()
 AssertNotCurrentThreadOwns.

Friends

class CondVar

Detailed Description

Mutex When possible, use MutexAutoLock/MutexAutoUnlock to lock/unlock this mutex within a scope, instead of calling Lock/Unlock directly.


Constructor & Destructor Documentation

mozilla::Mutex::Mutex ( const char *  name  )  [inline]

Mutex.

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

~Mutex


Member Function Documentation

void mozilla::Mutex::AssertCurrentThreadOwns (  )  [inline]

AssertCurrentThreadOwns.

See also:
prlock.h
void mozilla::Mutex::AssertNotCurrentThreadOwns (  )  [inline]

AssertNotCurrentThreadOwns.

See also:
prlock.h
void mozilla::Mutex::Lock (  )  [inline]

Lock.

See also:
prlock.h
void mozilla::Mutex::Unlock (  )  [inline]

Unlock.

See also:
prlock.h

Friends And Related Function Documentation

friend class CondVar [friend]

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