Mutex locking helper. More...
#include <mutex.h>
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. | |
Mutex locking helper.
| CL_MutexSection::CL_MutexSection | ( | CL_Mutex * | mutex, | |
| bool | lock_mutex = true | |||
| ) | [inline] |
Constructs a mutex section.
| CL_MutexSection::~CL_MutexSection | ( | ) | [inline] |
| 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.
1.7.1