proxygen
FakeAllPowerfulAssertingMutex Class Reference

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}
 

Detailed Description

Test mutex to help to automate assertions

Definition at line 33 of file LockTraitsTest.cpp.

Member Enumeration Documentation

Enumerator
UNLOCKED 
SHARED 
UPGRADE 
UNIQUE 

Definition at line 35 of file LockTraitsTest.cpp.

Member Function Documentation

void FakeAllPowerfulAssertingMutex::lock ( )
inline
void FakeAllPowerfulAssertingMutex::lock_shared ( )
inline
void FakeAllPowerfulAssertingMutex::lock_upgrade ( )
inline
template<class Rep , class Period >
bool FakeAllPowerfulAssertingMutex::try_lock_for ( const std::chrono::duration< Rep, Period > &  )
inline
template<class Rep , class Period >
bool FakeAllPowerfulAssertingMutex::try_lock_upgrade_for ( const std::chrono::duration< Rep, Period > &  )
inline
template<class Rep , class Period >
bool FakeAllPowerfulAssertingMutex::try_unlock_upgrade_and_lock_for ( const std::chrono::duration< Rep, Period > &  )
inline
void FakeAllPowerfulAssertingMutex::unlock ( )
inline
void FakeAllPowerfulAssertingMutex::unlock_and_lock_shared ( )
inline
void FakeAllPowerfulAssertingMutex::unlock_and_lock_upgrade ( )
inline
void FakeAllPowerfulAssertingMutex::unlock_shared ( )
inline
void FakeAllPowerfulAssertingMutex::unlock_upgrade ( )
inline
void FakeAllPowerfulAssertingMutex::unlock_upgrade_and_lock ( )
inline
void FakeAllPowerfulAssertingMutex::unlock_upgrade_and_lock_shared ( )
inline

Member Data Documentation

CurrentLockState FakeAllPowerfulAssertingMutex::lock_state {CurrentLockState::UNLOCKED}

Definition at line 104 of file LockTraitsTest.cpp.


The documentation for this class was generated from the following file: