#include <sbLockUtils.h>
Public Member Functions | |
sbSimpleAutoLock (PRLock *aLock) | |
~sbSimpleAutoLock () | |
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.
|
inline |
Definition at line 42 of file sbLockUtils.h.
|
inline |
Definition at line 49 of file sbLockUtils.h.