proxygen
SynchronizedTest.cpp File Reference

Go to the source code of this file.

Classes

class  folly::SynchronizedTest< Mutex >
 
class  folly::SynchronizedTimedTest< Mutex >
 
class  folly::SynchronizedTimedWithConstTest< Mutex >
 
class  folly::FakeMutex
 
class  folly::SynchronizedLockTest
 
class  folly::FakeAllPowerfulAssertingMutexInternal
 
class  folly::FakeAllPowerfulAssertingMutex
 
class  folly::NonDefaultConstructibleMutex
 

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 

Typedefs

using folly::SynchronizedTestTypes = testing::Types< folly::SharedMutexReadPriority, folly::SharedMutexWritePriority, std::mutex, std::recursive_mutex, boost::mutex, boost::recursive_mutex, boost::shared_mutex, folly::SpinLock >
 
using folly::SynchronizedTimedTestTypes = testing::Types< folly::SharedMutexReadPriority, folly::SharedMutexWritePriority >
 
using folly::SynchronizedTimedWithConstTestTypes = testing::Types< folly::SharedMutexReadPriority, folly::SharedMutexWritePriority >
 
using folly::CountPair = std::pair< int, int >
 
template<typename LockPolicy >
using folly::LPtr = LockedPtr< Synchronized< int >, LockPolicy >
 

Functions

 folly::TYPED_TEST_CASE (SynchronizedTest, SynchronizedTestTypes)
 
 folly::TYPED_TEST (SynchronizedTest, Basic)
 
 folly::TYPED_TEST (SynchronizedTest, WithLock)
 
 folly::TYPED_TEST (SynchronizedTest, Unlock)
 
 folly::TYPED_TEST (SynchronizedTest, Deprecated)
 
 folly::TYPED_TEST (SynchronizedTest, Concurrency)
 
 folly::TYPED_TEST (SynchronizedTest, AcquireLocked)
 
 folly::TYPED_TEST (SynchronizedTest, AcquireLockedWithConst)
 
 folly::TYPED_TEST (SynchronizedTest, DualLocking)
 
 folly::TYPED_TEST (SynchronizedTest, DualLockingWithConst)
 
 folly::TYPED_TEST (SynchronizedTest, ConstCopy)
 
 folly::TYPED_TEST (SynchronizedTest, InPlaceConstruction)
 
 folly::TYPED_TEST (SynchronizedTest, Exchange)
 
 folly::TYPED_TEST_CASE (SynchronizedTimedTest, SynchronizedTimedTestTypes)
 
 folly::TYPED_TEST (SynchronizedTimedTest, Timed)
 
 folly::TYPED_TEST (SynchronizedTimedTest, TimedSynchronized)
 
 folly::TYPED_TEST_CASE (SynchronizedTimedWithConstTest, SynchronizedTimedWithConstTestTypes)
 
 folly::TYPED_TEST (SynchronizedTimedWithConstTest, TimedShared)
 
 folly::TYPED_TEST (SynchronizedTimedWithConstTest, TimedSynchronizeWithConst)
 
 folly::TEST_F (SynchronizedLockTest, TestCopyConstructibleValues)
 
 folly::TEST_F (SynchronizedLockTest, UpgradableLocking)
 
 folly::TEST_F (SynchronizedLockTest, UpgradableLockingWithULock)
 
 folly::TEST_F (SynchronizedLockTest, TestPieceWiseConstruct)
 
 folly::TEST_F (SynchronizedLockTest, TestTryLock)
 
 folly::TEST_F (SynchronizedLockTest, TestTryWLock)
 
 folly::TEST_F (SynchronizedLockTest, TestTryRLock)
 
 folly::TEST_F (SynchronizedLockTest, TestTryULock)
 
 folly::TEST_F (SynchronizedLockTest, TestLockedPtrCompatibilityExclusive)
 
 folly::TEST_F (SynchronizedLockTest, TestLockedPtrCompatibilityShared)
 
 folly::TEST_F (SynchronizedLockTest, TestLockedPtrCompatibilityUpgrade)
 
 folly::TEST_F (SynchronizedLockTest, TestConvertTryLockToLock)
 
 folly::TEST (FollyLockTest, TestVariadicLockWithSynchronized)
 
 folly::TEST (FollyLockTest, TestVariadicLockWithArbitraryLockables)
 
 folly::TEST (FollyLockTest, TestVariadicLockSmartAndPoliteAlgorithm)
 
 folly::TEST (SynchronizedAlgorithmTest, Basic)
 
 folly::TEST (SynchronizedAlgorithmTest, BasicNonShareableMutex)
 
 folly::TEST (Synchronized, SynchronizedFunctionNonConst)
 
 folly::TEST (Synchronized, SynchronizedFunctionConst)
 
 folly::TEST (Synchronized, SynchronizedFunctionManyObjects)
 

Variables

static FakeAllPowerfulAssertingMutexInternal folly::globalAllPowerfulAssertingMutex
 

Variable Documentation

int current {gId++}

Definition at line 743 of file SynchronizedTest.cpp.

Referenced by folly::gen::detail::Sequence< Value, SequenceImpl >::apply(), checkChain(), folly::IOBuf::cloneAsValue(), folly::IOBuf::cloneCoalescedAsValueWithHeadroomTailroom(), folly::IOBuf::coalesceAndReallocate(), folly::IOBuf::computeChainDataLength(), folly::IOBuf::countChainElements(), folly::AccessSpreader< Atom >::current(), folly::io::StreamCodec::doCompress(), folly::io::StreamCodec::doUncompress(), folly::IOBuf::empty(), fizz::detail::evpDecrypt(), fizz::detail::evpEncrypt(), folly::gen::detail::Sequence< Value, SequenceImpl >::foreach(), folly::AsyncTransportWrapper::getUnderlyingTransport(), folly::IOBuf::isManaged(), folly::IOBuf::isShared(), folly::IndexedMemPool< T, NumLocalLists_, LocalListLimit_, Atom, Traits >::localHead(), folly::IOBuf::makeManagedChained(), folly::IOBuf::markExternallyShared(), proxygen::StructuredHeadersBuffer::parseBinaryContent(), proxygen::StructuredHeadersBuffer::parseIdentifier(), proxygen::StructuredHeadersBuffer::parseNumber(), proxygen::StructuredHeadersBuffer::parseString(), folly::LockedPtrBase< SynchronizedType, SynchronizedType::MutexType, LockPolicy >::releaseLock(), folly::gen::detail::RangeImpl< Value >::step(), folly::gen::detail::SeqImpl< Value >::step(), folly::gen::detail::InfiniteImpl< Value >::step(), TEST(), fizz::transformBuffer(), fizz::trimBytes(), folly::IOBuf::unshareChained(), folly::detail::distributed_mutex::wake(), fizz::detail::writeBuf(), fizz::detail::writeBuf< bits24 >(), fizz::detail::writeVector(), and folly::ConcurrentSkipList< T, Comp, NodeAlloc, MAX_HEIGHT >::~ConcurrentSkipList().

int gId
static

Definition at line 730 of file SynchronizedTest.cpp.

int gOrder
static

Definition at line 731 of file SynchronizedTest.cpp.

const bool kShouldSucceed

Definition at line 632 of file SynchronizedTest.cpp.

Referenced by folly::TEST_F().

int numTimesLocked {0}

Definition at line 685 of file SynchronizedTest.cpp.

int numTimesUnlocked {0}

Definition at line 686 of file SynchronizedTest.cpp.

std::function<void()> onLock {[] {}}

Definition at line 633 of file SynchronizedTest.cpp.

Referenced by folly::TEST_F().

std::function<void()> onLock_

Definition at line 661 of file SynchronizedTest.cpp.

std::function<void()> onLockShared_

Definition at line 663 of file SynchronizedTest.cpp.

std::function<void()> onUnlock {[] {}}

Definition at line 634 of file SynchronizedTest.cpp.

Referenced by folly::TEST_F().

std::function<void()> onUnlock_

Definition at line 662 of file SynchronizedTest.cpp.

std::function<void()> onUnlockShared_

Definition at line 664 of file SynchronizedTest.cpp.

bool shouldTryLockSucceed {true}

Definition at line 687 of file SynchronizedTest.cpp.