Public Member Functions

mozilla::MutexAutoUnlock Class Reference

MutexAutoUnlock Releases the Mutex when it enters scope, and re-acquires it when it leaves scope. More...

#include <Mutex.h>

Collaboration diagram for mozilla::MutexAutoUnlock:

List of all members.

Public Member Functions

 MutexAutoUnlock (mozilla::Mutex &aLock)
 ~MutexAutoUnlock ()

Detailed Description

MutexAutoUnlock Releases the Mutex when it enters scope, and re-acquires it when it leaves scope.

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


Constructor & Destructor Documentation

mozilla::MutexAutoUnlock::MutexAutoUnlock ( mozilla::Mutex aLock  )  [inline]
mozilla::MutexAutoUnlock::~MutexAutoUnlock (  )  [inline]

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