#include <p6lock.h>
Public Member Functions | |
P6StackLock (p6ILock *pLock) | |
~P6StackLock () | |
Protected Attributes | |
p6ILock * | m_pLock |
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: