clan::MutexSection Class Reference

Mutex locking helper. More...

#include <mutex.h>

Public Member Functions

Construction
 MutexSection (Mutex *mutex, bool lock_mutex=true)
 Constructs a mutex section. More...
 
 ~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.


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