#include <dxd_sync_platform.h>
◆ lock() [1/4]
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
◆ lock() [2/4]
template<
class lock_t = mutex>
standard constructor
- Parameters
-
lock | the mutex or rwlock object to lock |
◆ ~lock() [1/2]
template<
class lock_t = mutex>
◆ lock() [3/4]
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
◆ lock() [4/4]
template<
class lock_t = mutex>
standard constructor
- Parameters
-
lock | the mutex or rwlock object to lock |
◆ ~lock() [2/2]
template<
class lock_t = mutex>
◆ trylock() [1/2]
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 |
◆ trylock() [2/2]
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 |
◆ status
template<
class lock_t = mutex>
The documentation for this class was generated from the following files: