proxygen
|
Public Types | |
enum | CurrentLockState { CurrentLockState::UNLOCKED, CurrentLockState::SHARED, CurrentLockState::UPGRADE, CurrentLockState::UNIQUE } |
Public Member Functions | |
void | lock () |
void | unlock () |
void | lock_shared () |
void | unlock_shared () |
void | lock_upgrade () |
void | unlock_upgrade () |
void | unlock_upgrade_and_lock () |
void | unlock_and_lock_upgrade () |
void | unlock_and_lock_shared () |
void | unlock_upgrade_and_lock_shared () |
template<class Rep , class Period > | |
bool | try_lock_for (const std::chrono::duration< Rep, Period > &) |
template<class Rep , class Period > | |
bool | try_lock_upgrade_for (const std::chrono::duration< Rep, Period > &) |
template<class Rep , class Period > | |
bool | try_unlock_upgrade_and_lock_for (const std::chrono::duration< Rep, Period > &) |
Public Attributes | |
CurrentLockState | lock_state {CurrentLockState::UNLOCKED} |
Test mutex to help to automate assertions, taken from LockTraitsTest.cpp
Definition at line 204 of file SynchronizedTest.cpp.
|
inline |
Definition at line 208 of file SynchronizedTest.cpp.
References EXPECT_EQ.
Referenced by folly::FakeAllPowerfulAssertingMutex::lock().
|
inline |
Definition at line 216 of file SynchronizedTest.cpp.
References EXPECT_EQ.
Referenced by folly::FakeAllPowerfulAssertingMutex::lock_shared().
|
inline |
Definition at line 224 of file SynchronizedTest.cpp.
References EXPECT_EQ, and UPGRADE.
Referenced by folly::FakeAllPowerfulAssertingMutex::lock_upgrade().
|
inline |
Definition at line 251 of file SynchronizedTest.cpp.
References EXPECT_EQ.
Referenced by folly::FakeAllPowerfulAssertingMutex::try_lock_for().
|
inline |
Definition at line 258 of file SynchronizedTest.cpp.
References EXPECT_EQ, and UPGRADE.
Referenced by folly::FakeAllPowerfulAssertingMutex::try_lock_upgrade_for().
|
inline |
Definition at line 265 of file SynchronizedTest.cpp.
References EXPECT_EQ, and UPGRADE.
Referenced by folly::FakeAllPowerfulAssertingMutex::try_unlock_upgrade_and_lock_for().
|
inline |
Definition at line 212 of file SynchronizedTest.cpp.
References EXPECT_EQ.
Referenced by folly::FakeAllPowerfulAssertingMutex::unlock().
|
inline |
Definition at line 241 of file SynchronizedTest.cpp.
References EXPECT_EQ.
Referenced by folly::FakeAllPowerfulAssertingMutex::unlock_and_lock_shared().
|
inline |
Definition at line 237 of file SynchronizedTest.cpp.
References EXPECT_EQ, and UPGRADE.
Referenced by folly::FakeAllPowerfulAssertingMutex::unlock_and_lock_upgrade().
|
inline |
Definition at line 220 of file SynchronizedTest.cpp.
References EXPECT_EQ.
Referenced by folly::FakeAllPowerfulAssertingMutex::unlock_shared().
|
inline |
Definition at line 228 of file SynchronizedTest.cpp.
References EXPECT_EQ, and UPGRADE.
Referenced by folly::FakeAllPowerfulAssertingMutex::unlock_upgrade().
|
inline |
Definition at line 233 of file SynchronizedTest.cpp.
References EXPECT_EQ, and UPGRADE.
Referenced by folly::FakeAllPowerfulAssertingMutex::unlock_upgrade_and_lock().
|
inline |
Definition at line 245 of file SynchronizedTest.cpp.
References EXPECT_EQ, and UPGRADE.
Referenced by folly::FakeAllPowerfulAssertingMutex::unlock_upgrade_and_lock_shared().
CurrentLockState folly::FakeAllPowerfulAssertingMutexInternal::lock_state {CurrentLockState::UNLOCKED} |
Definition at line 275 of file SynchronizedTest.cpp.
Referenced by folly::TEST_F().