Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
P6R::P6StackLock Class Reference

#include <p6lock.h>

Public Member Functions

 P6StackLock (p6ILock *pLock)
 
 ~P6StackLock ()
 

Protected Attributes

p6ILockm_pLock
 

Detailed Description

Stack based non-reentrant lock.

This class is used to provide mutual exclusion for the scope of the current stack frame. When the leaving the current frame, the lock is released. NULL can be passed safely into the contructor for pLock allowing the disabling of locks to be easily implemented without requiring any changes to the code creating/calling this class.

Example usage:

* extern p6ILock *pLock;
* P6VOID func() {
* P6StackLock lockme(pLock);
*
* ...protected code
* }
*

Definition at line 484 of file p6lock.h.


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