|
proxygen
|
#include <deque>#include <mutex>#include <thread>#include <folly/portability/GTest.h>#include <folly/synchronization/CallOnce.h>Go to the source code of this file.
Functions | |
| template<typename CallOnceFunc > | |
| void | bm_impl (CallOnceFunc &&fn, size_t iters) |
| TEST (FollyCallOnce, Simple) | |
| TEST (FollyCallOnce, Exception) | |
| TEST (FollyCallOnce, Stress) | |
Variables | |
| static size_t const | kNumThreads = 16 |
| void bm_impl | ( | CallOnceFunc && | fn, |
| size_t | iters | ||
| ) |
Definition at line 27 of file CallOnceTest.cpp.
References i, kNumThreads, folly::pushmi::detail::t, and threads.
Referenced by TEST().
| TEST | ( | FollyCallOnce | , |
| Simple | |||
| ) |
Definition at line 41 of file CallOnceTest.cpp.
References ASSERT_EQ, folly::call_once(), and flag.
| TEST | ( | FollyCallOnce | , |
| Exception | |||
| ) |
Definition at line 50 of file CallOnceTest.cpp.
References folly::call_once(), EXPECT_EQ, EXPECT_THROW, and flag.
| TEST | ( | FollyCallOnce | , |
| Stress | |||
| ) |
Definition at line 67 of file CallOnceTest.cpp.
References ASSERT_EQ, bm_impl(), folly::call_once(), flag, and i.
|
static |
Definition at line 24 of file CallOnceTest.cpp.
Referenced by BENCHMARK(), BENCHMARK_RELATIVE(), bm_impl(), TEST(), and TEST_F().