AudRecordLib
Public Member Functions | Public Attributes
ExclusiveSRWLock Struct Reference

#include <scoped.h>

List of all members.

Public Member Functions

 ExclusiveSRWLock (SRWLOCK *pLock)
 ~ExclusiveSRWLock ()

Public Attributes

SRWLOCK * pLock

Detailed Description

RAII wrapper around acquiring and releasing exclusive access on a Slim Read-Writer lock


Constructor & Destructor Documentation

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

Parameters:
pLockThe lock to take
ExclusiveSRWLock::~ExclusiveSRWLock ( ) [inline]

Releases the lock acquired in the constructor


Member Data Documentation

The lock to acquire and release


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines