|
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) |
Static Public Member Functions inherited from folly::detail::LockTraitsImpl< Mutex, MutexLevel::UNIQUE, false > | |
| static void | lock (Mutex &mutex) |
| static void | unlock (Mutex &mutex) |
| static bool | try_lock (Mutex &mutex) |
Static Public Attributes | |
| static constexpr bool | is_timed {true} |
| static constexpr bool | is_shared {false} |
| static constexpr bool | is_upgrade {false} |
Static Public Attributes inherited from folly::detail::LockTraitsImpl< Mutex, MutexLevel::UNIQUE, false > | |
| static constexpr bool | is_timed {false} |
| static constexpr bool | is_shared {false} |
| static constexpr bool | is_upgrade {false} |
Definition at line 261 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 273 of file LockTraits.h.
|
static |
Definition at line 264 of file LockTraits.h.
|
static |
Definition at line 263 of file LockTraits.h.
|
static |
Definition at line 265 of file LockTraits.h.