ClanLib  2.3.7
List of all members
CL_MutexSection Class Reference

Mutex locking helper. More...

#include <mutex.h>

Public Member Functions

Construction
 CL_MutexSection (CL_Mutex *mutex, bool lock_mutex=true)
 Constructs a mutex section. More...
 
 ~CL_MutexSection ()
 
Attributes
int get_lock_count () const
 Returns the amounts of recursive mutex locks performed by this section. More...
 
Operations
void lock ()
 Lock the mutex. More...
 
bool try_lock ()
 Attempt to lock mutex. More...
 
void unlock ()
 Unlock mutex. More...
 

Detailed Description

Mutex locking helper.

Constructor & Destructor Documentation

CL_MutexSection::CL_MutexSection ( CL_Mutex mutex,
bool  lock_mutex = true 
)
inline

Constructs a mutex section.

CL_MutexSection::~CL_MutexSection ( )
inline

Member Function Documentation

int CL_MutexSection::get_lock_count ( ) const
inline

Returns the amounts of recursive mutex locks performed by this section.

void CL_MutexSection::lock ( )
inline

Lock the mutex.

bool CL_MutexSection::try_lock ( )
inline

Attempt to lock mutex.

void CL_MutexSection::unlock ( )
inline

Unlock mutex.


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