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

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

Inheritance diagram for ISingleWriterMultipleReaderLock::PotentialWriter:
Collaboration diagram for ISingleWriterMultipleReaderLock::PotentialWriter:

List of all members.

Detailed Description

A class that may lock an instance of ISingleWriterMultipleReaderLock for write access. If you call EnterToWrite() or TryEnterToWrite() 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

 PotentialWriter (ISingleWriterMultipleReaderLock &lock)
void EnterToWrite ()
bool TryEnterToWrite ()
void Leave ()

Protected Attributes

bool m_locked

Constructor & Destructor Documentation

PotentialWriter ( ISingleWriterMultipleReaderLock lock  )  [explicit]

Member Function Documentation

void EnterToWrite (  ) 

bool TryEnterToWrite (  ) 

void Leave (  )  [inherited]

Member Data Documentation

ISingleWriterMultipleReaderLock& m_lock [protected, inherited]

bool m_locked [protected, inherited]

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