#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. | |
|
||||||||||||
|
Constructs a mutex section.
|
|
|
|
|
|
Returns the amounts of recursive mutex locks performed by this section.
|
|
|
Lock the mutex.
|
|
|
Attempt to lock mutex.
|
|
|
Unlock mutex.
|
1.4.6