|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
#include <dxd_sync_platform.h>
Public Member Functions | |
| lock() | |
| lock(const lock &)= delete | |
| lock(const lock &)= delete | |
| lock(lock&& lock) | |
| the lock travels with the guard: whoever holds it releases it exactly once | |
| lock(lock&& lock) | |
| lock(lock_t& lock) | |
| lock(lock_t& lock) | |
| bool | trylock(lock_t& lock) |
| true if the mutex could be obtained, false if it is held elsewhere | |
| bool | trylock(lock_t& lock) |
| ~lock() | |
| ~lock() | |
Public Attributes | |
| os_result | status |
the lock travels with the guard: whoever holds it releases it exactly once
standard constructor
| lock | the mutex or rwlock object to lock |
the lock travels with the guard: whoever holds it releases it exactly once
true if the mutex could be obtained, false if it is held elsewhere
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
| lock | the mutex or rwlock object to lock |