Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

nsAutoLock Class Reference

#include <nsAutoLock.h>

Inheritance diagram for nsAutoLock:

nsAutoLockBase

List of all members.


Detailed Description

nsAutoLock Stack-based locking object for PRLock.

Definition at line 146 of file nsAutoLock.h.


Public Member Functions

void lock ()
 nsAutoLock (PRLock *aLock)
void unlock ()

Protected Types

enum  nsAutoLockType { eAutoLock, eAutoMonitor, eAutoCMonitor }

Protected Member Functions

void Hide ()
void Show ()

Private Member Functions

 nsAutoLock (nsAutoLock &)
nsAutoLockoperator= (nsAutoLock &)

Static Private Member Functions

static void operator delete (void *)
static void * operator new (size_t) CPP_THROW_NEW

Private Attributes

PRLock * mLock
PRBool mLocked

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

Generated by  Doxygen 1.6.0   Back to index