Sleeping Wombat Common Library  0.50.0
swCommonLibrary
Public Member Functions | Private Attributes | List of all members
sw::ReaderWriterLock Class Reference

Readers-Writers problem solution with readers preference. More...

#include <ReaderWriterLock.h>

Public Member Functions

void ReaderLock ()
 
void ReaderUnlock ()
 
void WriterLock ()
 
void WriterUnlock ()
 

Private Attributes

std::mutex m_resourceLock
 
std::mutex m_readersLock
 
int m_numReaders
 

Detailed Description

Readers-Writers problem solution with readers preference.


The documentation for this class was generated from the following file: