proxygen
|
#include <folly/synchronization/Rcu.h>
#include <thread>
#include <vector>
#include <glog/logging.h>
#include <folly/Benchmark.h>
#include <folly/Random.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Classes | |
class | des |
Functions | |
DEFINE_int64 (iters, 100000,"Number of iterations") | |
DEFINE_uint64 (threads, 32,"Number of threads") | |
TEST (RcuTest, Basic) | |
TEST (RcuTest, Guard) | |
TEST (RcuTest, Perf) | |
TEST (RcuTest, ResetPerf) | |
TEST (RcuTest, SlowReader) | |
rcu_reader | tryretire (des *obj) |
TEST (RcuTest, CopyGuard) | |
TEST (RcuTest, Stress) | |
TEST (RcuTest, Synchronize) | |
TEST (RcuTest, NewDomainTest) | |
TEST (RcuTest, NewDomainGuardTest) | |
TEST (RcuTest, MovableReader) | |
TEST (RcuTest, SynchronizeInCall) | |
TEST (RcuTest, MoveReaderBetweenThreads) | |
TEST (RcuTest, ForkTest) | |
TEST (RcuTest, ThreadLocalList) | |
TEST (RcuTest, ThreadDeath) | |
TEST (RcuTest, RcuObjBase) | |
DEFINE_int64 | ( | iters | , |
100000 | , | ||
"Number of iterations" | |||
) |
TEST | ( | RcuTest | , |
Basic | |||
) |
Definition at line 33 of file RcuTest.cpp.
References folly::rcu_retire().
TEST | ( | RcuTest | , |
Guard | |||
) |
Definition at line 48 of file RcuTest.cpp.
References EXPECT_TRUE, g(), folly::rcu_retire(), and folly::synchronize_rcu().
TEST | ( | RcuTest | , |
Perf | |||
) |
TEST | ( | RcuTest | , |
ResetPerf | |||
) |
TEST | ( | RcuTest | , |
SlowReader | |||
) |
Definition at line 83 of file RcuTest.cpp.
References g(), folly::synchronize_rcu(), and folly::pushmi::detail::t.
TEST | ( | RcuTest | , |
CopyGuard | |||
) |
Definition at line 100 of file RcuTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, folly::rcu_barrier(), and tryretire().
TEST | ( | RcuTest | , |
Stress | |||
) |
Definition at line 111 of file RcuTest.cpp.
References EXPECT_EQ, g(), i, folly::Random::rand32(), sum(), folly::synchronize_rcu(), folly::pushmi::detail::t, threads, and uint32_t.
TEST | ( | RcuTest | , |
Synchronize | |||
) |
Definition at line 157 of file RcuTest.cpp.
References i, folly::synchronize_rcu(), folly::pushmi::detail::t, and threads.
TEST | ( | RcuTest | , |
NewDomainTest | |||
) |
Definition at line 171 of file RcuTest.cpp.
References folly::synchronize_rcu().
TEST | ( | RcuTest | , |
NewDomainGuardTest | |||
) |
Definition at line 177 of file RcuTest.cpp.
References EXPECT_TRUE, g(), folly::rcu_retire(), and folly::synchronize_rcu().
TEST | ( | RcuTest | , |
MovableReader | |||
) |
Definition at line 188 of file RcuTest.cpp.
References f, g(), folly::gen::move, and folly::synchronize_rcu().
TEST | ( | RcuTest | , |
SynchronizeInCall | |||
) |
Definition at line 202 of file RcuTest.cpp.
References folly::rcu_default_domain(), and folly::synchronize_rcu().
TEST | ( | RcuTest | , |
MoveReaderBetweenThreads | |||
) |
Definition at line 207 of file RcuTest.cpp.
References f, g(), folly::gen::move, folly::synchronize_rcu(), and folly::pushmi::detail::t.
TEST | ( | RcuTest | , |
ForkTest | |||
) |
Definition at line 214 of file RcuTest.cpp.
References EXPECT_EQ, folly::gen::move, folly::rcu_default_domain(), folly::synchronize_rcu(), folly::pushmi::detail::t, and folly::detail::distributed_mutex::wait().
TEST | ( | RcuTest | , |
ThreadLocalList | |||
) |
Definition at line 234 of file RcuTest.cpp.
References folly::detail::ThreadCachedLists< Tag >::collect(), i, bm::list, folly::detail::ThreadCachedLists< Tag >::push(), threads, and tr.
TEST | ( | RcuTest | , |
ThreadDeath | |||
) |
Definition at line 265 of file RcuTest.cpp.
References EXPECT_TRUE, folly::rcu_retire(), folly::synchronize_rcu(), and folly::pushmi::detail::t.
TEST | ( | RcuTest | , |
RcuObjBase | |||
) |
Definition at line 276 of file RcuTest.cpp.
References EXPECT_TRUE, and folly::synchronize_rcu().
rcu_reader tryretire | ( | des * | obj | ) |
Definition at line 94 of file RcuTest.cpp.
References g(), and folly::rcu_retire().
Referenced by TEST().