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
Definition at line 33 of file LockTraitsTest.cpp.
|
strong |
|
inline |
Definition at line 37 of file LockTraitsTest.cpp.
References EXPECT_EQ.
|
inline |
Definition at line 45 of file LockTraitsTest.cpp.
References EXPECT_EQ.
|
inline |
Definition at line 53 of file LockTraitsTest.cpp.
References EXPECT_EQ, and UPGRADE.
|
inline |
Definition at line 80 of file LockTraitsTest.cpp.
References EXPECT_EQ.
|
inline |
Definition at line 87 of file LockTraitsTest.cpp.
References EXPECT_EQ, and UPGRADE.
|
inline |
Definition at line 94 of file LockTraitsTest.cpp.
References EXPECT_EQ, and UPGRADE.
|
inline |
Definition at line 41 of file LockTraitsTest.cpp.
References EXPECT_EQ.
|
inline |
Definition at line 70 of file LockTraitsTest.cpp.
References EXPECT_EQ.
|
inline |
Definition at line 66 of file LockTraitsTest.cpp.
References EXPECT_EQ, and UPGRADE.
|
inline |
Definition at line 49 of file LockTraitsTest.cpp.
References EXPECT_EQ.
|
inline |
Definition at line 57 of file LockTraitsTest.cpp.
References EXPECT_EQ, and UPGRADE.
|
inline |
Definition at line 62 of file LockTraitsTest.cpp.
References EXPECT_EQ, and UPGRADE.
|
inline |
Definition at line 74 of file LockTraitsTest.cpp.
References EXPECT_EQ, and UPGRADE.
CurrentLockState FakeAllPowerfulAssertingMutex::lock_state {CurrentLockState::UNLOCKED} |
Definition at line 104 of file LockTraitsTest.cpp.