RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::Threading::Monitor Class Reference

Provides a mechanism that synchronizes access to objects. More...

Inheritance diagram for System::Threading::Monitor:
System::Threading::Synchronizable< Collections::Generic::List< ThreadPoolWorker * > > System::Threading::Synchronizable< Collections::Generic::List< ThreadPoolWorker *, ThreadPoolWorker > > System::Threading::Synchronizable< Collections::Generic::Queue< ThreadPoolTask > >

Public Member Functions

 Monitor (_In_ DWORD dwSpinCount=4000)
 
void Enter () const
 Acquires an exclusive lock. More...
 
bool TryEnter () const
 Attempts to acquire an exclusive lock. More...
 
void Exit () const
 Releases an exclusive lock. More...
 
void Lock () const
 Acquires an exclusive lock. More...
 
bool TryLock () const
 Attempts to acquire an exclusive lock. More...
 
void UnLock () const
 Releases an exclusive lock. More...
 

Public Attributes

 RLIB_DECLARE_DYNCREATE
 

Detailed Description

Provides a mechanism that synchronizes access to objects.

Member Function Documentation

void Monitor::Enter ( ) const

Acquires an exclusive lock.

void Monitor::Exit ( ) const

Releases an exclusive lock.

void System::Threading::Monitor::Lock ( ) const
inline

Acquires an exclusive lock.

bool Monitor::TryEnter ( ) const

Attempts to acquire an exclusive lock.

bool System::Threading::Monitor::TryLock ( ) const
inline

Attempts to acquire an exclusive lock.

void System::Threading::Monitor::UnLock ( ) const
inline

Releases an exclusive lock.


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