CL_MutexSection Class Reference
[clanCore System]

Mutex locking helper. More...

#include <mutex.h>

List of all members.

Public Member Functions

Construction

 CL_MutexSection (CL_Mutex *mutex, bool lock_mutex=true)
 Constructs a mutex section.
 ~CL_MutexSection ()
Attributes

int get_lock_count () const
 Returns the amounts of recursive mutex locks performed by this section.
Operations

void lock ()
 Lock the mutex.
bool try_lock ()
 Attempt to lock mutex.
void unlock ()
 Unlock mutex.

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: