proxygen
folly::FakeMutex Class Reference

Public Member Functions

void lock ()
 
void unlock ()
 

Static Public Member Functions

static CountPair getLockUnlockCount ()
 
static void resetLockUnlockCount ()
 

Static Private Attributes

static FOLLY_TLS int lockCount_ {0}
 
static FOLLY_TLS int unlockCount_ {0}
 

Detailed Description

Definition at line 163 of file SynchronizedTest.cpp.

Member Function Documentation

static CountPair folly::FakeMutex::getLockUnlockCount ( )
inlinestatic

Definition at line 173 of file SynchronizedTest.cpp.

173  {
175  }
static FOLLY_TLS int unlockCount_
static FOLLY_TLS int lockCount_
std::pair< int, int > CountPair
void folly::FakeMutex::lock ( )
inline

Definition at line 165 of file SynchronizedTest.cpp.

165  {
166  ++lockCount_;
167  }
static FOLLY_TLS int lockCount_
static void folly::FakeMutex::resetLockUnlockCount ( )
inlinestatic

Definition at line 177 of file SynchronizedTest.cpp.

Referenced by folly::SynchronizedLockTest::SetUp().

177  {
178  lockCount_ = 0;
179  unlockCount_ = 0;
180  }
static FOLLY_TLS int unlockCount_
static FOLLY_TLS int lockCount_
void folly::FakeMutex::unlock ( )
inline

Definition at line 169 of file SynchronizedTest.cpp.

169  {
170  ++unlockCount_;
171  }
static FOLLY_TLS int unlockCount_

Member Data Documentation

FOLLY_TLS int folly::FakeMutex::lockCount_ {0}
staticprivate

Definition at line 186 of file SynchronizedTest.cpp.

FOLLY_TLS int folly::FakeMutex::unlockCount_ {0}
staticprivate

Definition at line 187 of file SynchronizedTest.cpp.


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