proxygen
|
#include <LockTraits.h>
Static Public Member Functions | |
template<class Rep , class Period > | |
static bool | try_lock_for (Mutex &mutex, const std::chrono::duration< Rep, Period > &timeout) |
template<class Rep , class Period > | |
static bool | try_lock_shared_for (Mutex &mutex, const std::chrono::duration< Rep, Period > &timeout) |
![]() | |
static void | lock_shared (Mutex &mutex) |
static void | unlock_shared (Mutex &mutex) |
static bool | try_lock_shared (Mutex &mutex) |
![]() | |
static void | lock (Mutex &mutex) |
static void | unlock (Mutex &mutex) |
static bool | try_lock (Mutex &mutex) |
![]() | |
template<class Rep , class Period > | |
static bool | try_lock_for (Mutex &mutex, const std::chrono::duration< Rep, Period > &timeout) |
Static Public Attributes | |
static constexpr bool | is_timed {true} |
static constexpr bool | is_shared {true} |
static constexpr bool | is_upgrade {false} |
![]() | |
static constexpr bool | is_timed {false} |
static constexpr bool | is_shared {true} |
static constexpr bool | is_upgrade {false} |
![]() | |
static constexpr bool | is_timed {false} |
static constexpr bool | is_shared {false} |
static constexpr bool | is_upgrade {false} |
![]() | |
static constexpr bool | is_timed {true} |
static constexpr bool | is_shared {false} |
static constexpr bool | is_upgrade {false} |
Note that there is no deadly diamond here because all the structs only have static functions and static bools which are going to be overridden by the lowest level implementation
Definition at line 286 of file LockTraits.h.
|
inlinestatic |
Acquire the lock exclusively, with a timeout.
Returns true or false indicating if the lock was acquired or not.
Definition at line 299 of file LockTraits.h.
|
inlinestatic |
Acquire the lock in shared (read) mode, with a timeout.
Returns true or false indicating if the lock was acquired or not.
Definition at line 311 of file LockTraits.h.
|
static |
Definition at line 290 of file LockTraits.h.
|
static |
Definition at line 289 of file LockTraits.h.
|
static |
Definition at line 291 of file LockTraits.h.