#include <dxd_sync_platform.h>
template<class lock_t = mutex>
this constructor is only used in conjunction with trylock(): where the mutex or rwlock might be obtained at trylock() time
template<class lock_t = mutex>
standard constructor
- Parameters
-
lock | the mutex or rwlock object to lock |
template<class lock_t = mutex>
template<class lock_t = mutex>
this constructor is only used in conjunction with trylock(): where the mutex or rwlock might be obtained at trylock() time
template<class lock_t = mutex>
standard constructor
- Parameters
-
lock | the mutex or rwlock object to lock |
template<class lock_t = mutex>
template<class lock_t = mutex>
bool dxd::lock< lock_t >::trylock |
( |
lock_t & |
lock | ) |
|
|
inline |
try to obtain the lock for the mutex or rwlock object; returns true if mutex or rwlock object could be successfully locked; false if mutex was locked elsewhere
- Parameters
-
lock | the mutex or rwlock object to lock |
template<class lock_t = mutex>
bool dxd::lock< lock_t >::trylock |
( |
lock_t & |
lock | ) |
|
|
inline |
try to obtain the lock for the mutex or rwlock object; returns true if mutex or rwlock object could be successfully locked; false if mutex was locked elsewhere
- Parameters
-
lock | the mutex or rwlock object to lock |
template<class lock_t = mutex>
The documentation for this class was generated from the following file: