#include <ipcplus.h>
Public Methods | |
CritSec (Mutex *pMutex) | |
Constructor: Enter the critical section. | |
virtual | ~CritSec () |
Destructor: Leave the critical section. | |
Private Attributes | |
Mutex * | pMut |
The mutex to use for the critical section. |
The intended use is to construct an CritSec object on the stack, which will block the current process until the associated mutex semaphore is raised. When the program flow leaves the scope in which the object was created, the associated mutex semaphore is released be the object's destructor.