X2 Standard
Version 1.24
|
The X2MutexLocker provides a cross-platform utility to lock and unlock a MutexInterface. More...
#include <mutexinterface.h>
Public Member Functions | |
X2MutexLocker (MutexInterface *pIOMutex) | |
~X2MutexLocker () | |
The X2MutexLocker provides a cross-platform utility to lock and unlock a MutexInterface.
A convienent helper ensures perfect mutex unlock for every lock, typically used to serialize device io calls. Simply declare a local instance of this object which automatically locks the mutex and unlocks the mutex when it goes out of scope.
|
inline |
The constructor that automatically locks the MutexInterface passed in.
|
inline |
The destructor that automatically unlocks the MutexInterface.