AudRecordLib
|
#include <scoped.h>
Public Member Functions | |
ExclusiveSRWLock (SRWLOCK *pLock) | |
~ExclusiveSRWLock () | |
Public Attributes | |
SRWLOCK * | pLock |
RAII wrapper around acquiring and releasing exclusive access on a Slim Read-Writer lock
ExclusiveSRWLock::ExclusiveSRWLock | ( | SRWLOCK * | pLock | ) | [inline] |
Initialises the object and acquires exclusive access to the lock
The function will block until exclusive access can be achieved
pLock | The lock to take |
ExclusiveSRWLock::~ExclusiveSRWLock | ( | ) | [inline] |
Releases the lock acquired in the constructor
SRWLOCK* ExclusiveSRWLock::pLock |
The lock to acquire and release