Proud::CReaderLock_NORECURSE Class Reference

Public Member Functions

 CReaderLock_NORECURSE (CReaderWriterMonitor_NORECURSE &cs, bool initialLock)
 
 ~CReaderLock_NORECURSE ()
 
void Lock ()
 
int GetMultipleReaderCount ()
 
void Unlock ()
 

Constructor & Destructor Documentation

Proud::CReaderLock_NORECURSE::CReaderLock_NORECURSE ( CReaderWriterMonitor_NORECURSE cs,
bool  initialLock 
)
inline

Reader lock object can be directly locked at constructor.

Parameters
csreader lock object to be applied
initialLockif true then constructor locks directly
Proud::CReaderLock_NORECURSE::~CReaderLock_NORECURSE ( )
inline

Destructor

  • If there is CriticalSection that is occupied by this object already then disoccupation will be performed automatically.

Member Function Documentation

void Proud::CReaderLock_NORECURSE::Lock ( )
inline

Occupies reader lock

Returns
number of multiple reader required after locking
void Proud::CReaderLock_NORECURSE::Unlock ( )
inline

Withdraws reader lock