The C++ framework for developing highly scalable, high performance servers on Windows platforms.

ISingleWriterMultipleReaderLock::PotentialReader Class Reference
[Win32 Synchronization primitivesRAII - Resource Acquisition Is Initialization]

Inheritance diagram for ISingleWriterMultipleReaderLock::PotentialReader:
Collaboration diagram for ISingleWriterMultipleReaderLock::PotentialReader:

List of all members.


Detailed Description

A class that may lock an instance of ISingleWriterMultipleReaderLock for read access. If you call EnterToRead() or TryEnterToRead() on this class it will keep track of the fact that the lock has been entered and will call Leave() in the destructor. This can therefore be used to support scope based locking and unlocking of instances of ISingleWriterMultipleReaderLock.

Public Member Functions

 PotentialReader (ISingleWriterMultipleReaderLock &lock)
void EnterToRead ()
bool TryEnterToRead ()
void Leave ()

Protected Attributes

ISingleWriterMultipleReaderLockm_lock
bool m_locked

Constructor & Destructor Documentation

PotentialReader ( ISingleWriterMultipleReaderLock lock  )  [explicit]


Member Function Documentation

void EnterToRead (  ) 

bool TryEnterToRead (  ) 

void Leave (  )  [inherited]


Member Data Documentation

ISingleWriterMultipleReaderLock& m_lock [protected, inherited]

bool m_locked [protected, inherited]


Generated on Sun Sep 12 19:08:39 2021 for The Server Framework - v7.4 by doxygen 1.5.3