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