|
proxygen
|
Classes | |
| struct | NotCopiableNotMovable |
Functions | |
| std::mt19937 & | getRNG () |
| void | randomSleep (std::chrono::milliseconds min, std::chrono::milliseconds max) |
| template<class Function > | |
| void | runParallel (size_t numThreads, const Function &function) |
| template<class Mutex > | |
| std::enable_if< folly::LockTraits< Mutex >::is_shared >::type | testBasicImpl () |
| template<class Mutex > | |
| std::enable_if<!folly::LockTraits< Mutex >::is_shared >::type | testBasicImpl () |
| template<class Mutex > | |
| void | testBasic () |
| template<class Mutex > | |
| std::enable_if< folly::LockTraits< Mutex >::is_shared >::type | testWithLock () |
| template<class Mutex > | |
| std::enable_if<!folly::LockTraits< Mutex >::is_shared >::type | testWithLock () |
| template<class Mutex > | |
| void | testUnlockCommon () |
| template<class Mutex > | |
| std::enable_if< folly::LockTraits< Mutex >::is_shared >::type | testUnlock () |
| template<class Mutex > | |
| std::enable_if<!folly::LockTraits< Mutex >::is_shared >::type | testUnlock () |
| template<class Mutex > | |
| void | testDeprecated () |
| template<class Mutex > | |
| void | testConcurrency () |
| template<class Mutex > | |
| void | testAcquireLocked () |
| template<class Mutex > | |
| void | testAcquireLockedWithConst () |
| template<class Mutex > | |
| void | testDualLocking () |
| template<class Mutex > | |
| void | testDualLockingWithConst () |
| template<class Mutex > | |
| void | testTimed () |
| template<class Mutex > | |
| void | testTimedShared () |
| template<class Mutex > | |
| void | testTimedSynchronized () |
| template<class Mutex > | |
| void | testTimedSynchronizedWithConst () |
| template<class Mutex > | |
| void | testConstCopy () |
| template<class Mutex > | |
| void | testInPlaceConstruction () |
| template<class Mutex > | |
| void | testExchange () |
| template<class Mutex > | |
| void | testTimedSynchronizedDeprecated () |
|
inline |
Definition at line 35 of file SynchronizedTestLib-inl.h.
References folly::randomNumberSeed(), rng, and seed.
Referenced by randomSleep().
| void folly::sync_tests::randomSleep | ( | std::chrono::milliseconds | min, |
| std::chrono::milliseconds | max | ||
| ) |
Definition at line 41 of file SynchronizedTestLib-inl.h.
References getRNG(), and folly::range().
Referenced by testTimed(), testTimedShared(), testTimedSynchronized(), and testTimedSynchronizedWithConst().
| void folly::sync_tests::runParallel | ( | size_t | numThreads, |
| const Function & | function | ||
| ) |
Definition at line 57 of file SynchronizedTestLib-inl.h.
Referenced by testAcquireLocked(), testAcquireLockedWithConst(), testConcurrency(), testDualLocking(), testDualLockingWithConst(), testTimed(), testTimedShared(), testTimedSynchronized(), and testTimedSynchronizedWithConst().
| void folly::sync_tests::testAcquireLocked | ( | ) |
Definition at line 503 of file SynchronizedTestLib-inl.h.
References folly::acquireLocked(), EXPECT_EQ, i, m, Mutex, push_back(), runParallel(), folly::Synchronized< T, Mutex >::swap(), and v.
| void folly::sync_tests::testAcquireLockedWithConst | ( | ) |
Definition at line 536 of file SynchronizedTestLib-inl.h.
References folly::acquireLocked(), EXPECT_EQ, i, m, Mutex, push_back(), runParallel(), folly::Synchronized< T, Mutex >::swap(), and v.
| void folly::sync_tests::testBasic | ( | ) |
Definition at line 199 of file SynchronizedTestLib-inl.h.
References type.
| std::enable_if<folly::LockTraits<Mutex>::is_shared>::type folly::sync_tests::testBasicImpl | ( | ) |
Definition at line 109 of file SynchronizedTestLib-inl.h.
References folly::Synchronized< T, Mutex >::contextualLock(), EXPECT_EQ, Mutex, and type.
| std::enable_if<!folly::LockTraits<Mutex>::is_shared>::type folly::sync_tests::testBasicImpl | ( | ) |
Definition at line 161 of file SynchronizedTestLib-inl.h.
References folly::Synchronized< T, Mutex >::contextualLock(), EXPECT_EQ, and Mutex.
| void folly::sync_tests::testConcurrency | ( | ) |
Definition at line 473 of file SynchronizedTestLib-inl.h.
References folly::Synchronized< T, Mutex >::contextualLock(), EXPECT_EQ, i, Mutex, runParallel(), folly::Synchronized< T, Mutex >::swap(), v, and folly::fibers::yield().
| void folly::sync_tests::testConstCopy | ( | ) |
Definition at line 845 of file SynchronizedTestLib-inl.h.
References folly::Synchronized< T, Mutex >::copy(), EXPECT_EQ, Mutex, and v.
| void folly::sync_tests::testDeprecated | ( | ) |
Definition at line 441 of file SynchronizedTestLib-inl.h.
References EXPECT_EQ, FB_ARG_2_OR_1, Mutex, SYNCHRONIZED, and SYNCHRONIZED_CONST.
| void folly::sync_tests::testDualLocking | ( | ) |
Definition at line 568 of file SynchronizedTestLib-inl.h.
References EXPECT_EQ, i, m, Mutex, runParallel(), folly::Synchronized< T, Mutex >::swap(), SYNCHRONIZED_DUAL, and v.
| void folly::sync_tests::testDualLockingWithConst | ( | ) |
Definition at line 601 of file SynchronizedTestLib-inl.h.
References EXPECT_EQ, i, m, Mutex, runParallel(), folly::Synchronized< T, Mutex >::swap(), SYNCHRONIZED_DUAL, and v.
| void folly::sync_tests::testExchange | ( | ) |
Definition at line 873 of file SynchronizedTestLib-inl.h.
References folly::Synchronized< T, Mutex >::copy(), folly::Synchronized< T, Mutex >::exchange(), EXPECT_EQ, folly::gen::move, Mutex, cpp.ast::next(), and v.
| void folly::sync_tests::testInPlaceConstruction | ( | ) |
Definition at line 867 of file SynchronizedTestLib-inl.h.
References a, and folly::in_place().
| void folly::sync_tests::testTimed | ( | ) |
Definition at line 634 of file SynchronizedTestLib-inl.h.
References folly::Synchronized< T, Mutex >::contextualLock(), folly::Synchronized< T, Mutex >::contextualRLock(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, i, folly::INFO, Mutex, randomSleep(), runParallel(), folly::Synchronized< T, Mutex >::swap(), and v.
| void folly::sync_tests::testTimedShared | ( | ) |
Definition at line 692 of file SynchronizedTestLib-inl.h.
References folly::Synchronized< T, Mutex >::contextualLock(), folly::Synchronized< T, Mutex >::contextualRLock(), EXPECT_EQ, i, folly::INFO, Mutex, randomSleep(), runParallel(), folly::Synchronized< T, Mutex >::swap(), and v.
| void folly::sync_tests::testTimedSynchronized | ( | ) |
Definition at line 745 of file SynchronizedTestLib-inl.h.
References folly::Synchronized< T, Mutex >::contextualLock(), folly::Synchronized< T, Mutex >::contextualRLock(), EXPECT_EQ, i, folly::INFO, Mutex, randomSleep(), runParallel(), folly::Synchronized< T, Mutex >::swap(), TIMED_SYNCHRONIZED, and v.
| void folly::sync_tests::testTimedSynchronizedDeprecated | ( | ) |
| void folly::sync_tests::testTimedSynchronizedWithConst | ( | ) |
Definition at line 792 of file SynchronizedTestLib-inl.h.
References folly::Synchronized< T, Mutex >::contextualLock(), folly::Synchronized< T, Mutex >::contextualRLock(), EXPECT_EQ, i, folly::INFO, Mutex, randomSleep(), runParallel(), folly::Synchronized< T, Mutex >::swap(), TIMED_SYNCHRONIZED_CONST, and v.
| std::enable_if<folly::LockTraits<Mutex>::is_shared>::type folly::sync_tests::testUnlock | ( | ) |
Definition at line 375 of file SynchronizedTestLib-inl.h.
References EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::gen::move, type, and folly::value().
| std::enable_if<!folly::LockTraits<Mutex>::is_shared>::type folly::sync_tests::testUnlock | ( | ) |
Definition at line 408 of file SynchronizedTestLib-inl.h.
References EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::gen::move, and folly::value().
| void folly::sync_tests::testUnlockCommon | ( | ) |
Definition at line 342 of file SynchronizedTestLib-inl.h.
References EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, type, and folly::value().
| std::enable_if<folly::LockTraits<Mutex>::is_shared>::type folly::sync_tests::testWithLock | ( | ) |
Definition at line 206 of file SynchronizedTestLib-inl.h.
References EXPECT_EQ, Mutex, and type.
| std::enable_if<!folly::LockTraits<Mutex>::is_shared>::type folly::sync_tests::testWithLock | ( | ) |
Definition at line 285 of file SynchronizedTestLib-inl.h.
References EXPECT_EQ, and Mutex.