sbSimpleAutoLock Class Reference

#include <sbLockUtils.h>

Public Member Functions

 sbSimpleAutoLock (PRLock *aLock)
 ~sbSimpleAutoLock ()

Detailed Description

This class can be used for stack-based locking when the overhead of the nsAutoLock deadlock detection is too great (e.g. for classes that have many instances created and deleted in rapid succession).

If you don't expect to have hundreds of instances running around then please favor nsAutoLock over this in order to take advantage of deadlock detection.

DON'T use this class with locks created with nsAutoLock::NewLock!

Definition at line 39 of file sbLockUtils.h.

Constructor & Destructor Documentation

sbSimpleAutoLock::sbSimpleAutoLock ( PRLock *  aLock)

Definition at line 42 of file sbLockUtils.h.

sbSimpleAutoLock::~sbSimpleAutoLock ( )

Definition at line 49 of file sbLockUtils.h.

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