Public Member Functions

mozilla::MutexAutoLock Class Reference

MutexAutoLock Acquires the Mutex when it enters scope, and releases it when it leaves scope. More...

#include <Mutex.h>

Collaboration diagram for mozilla::MutexAutoLock:

List of all members.

Public Member Functions

 MutexAutoLock (mozilla::Mutex &aLock)
 Constructor The constructor aquires the given lock.
 ~MutexAutoLock (void)

Detailed Description

MutexAutoLock Acquires the Mutex when it enters scope, and releases it when it leaves scope.

MUCH PREFERRED to bare calls to Mutex.Lock and Unlock.


Constructor & Destructor Documentation

mozilla::MutexAutoLock::MutexAutoLock ( mozilla::Mutex aLock  )  [inline]

Constructor The constructor aquires the given lock.

The destructor releases the lock.

Parameters:
aLock A valid mozilla::Mutex* returned by mozilla::Mutex::NewMutex.
mozilla::MutexAutoLock::~MutexAutoLock ( void   )  [inline]

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