|
proxygen
|
#include <folly/synchronization/SmallLocks.h>#include <cassert>#include <condition_variable>#include <cstdio>#include <mutex>#include <string>#include <thread>#include <vector>#include <glog/logging.h>#include <folly/Random.h>#include <folly/portability/Asm.h>#include <folly/portability/GTest.h>#include <folly/portability/PThread.h>#include <folly/portability/Unistd.h>Go to the source code of this file.
Classes | |
| struct | FOLLY_PACK_POP::SimpleBarrier |
Namespaces | |
| FOLLY_PACK_POP | |
Functions | |
| TEST (SmallLocks, SpinLockCorrectness) | |
| TEST (SmallLocks, RegClobber) | |
| TEST (SmallLocks, MicroLock) | |
| TEST (SmallLocks, MicroLockTryLock) | |
Variables | |
| FOLLY_PACK_PUSH | |
| TEST | ( | SmallLocks | , |
| SpinLockCorrectness | |||
| ) |
Definition at line 148 of file SmallLocksTest.cpp.
References EXPECT_EQ, folly::gen::guard(), i, nthrs, folly::pushmi::detail::t, threads, and val.
| TEST | ( | SmallLocks | , |
| RegClobber | |||
| ) |
Definition at line 187 of file SmallLocksTest.cpp.
References FOLLY_PACK_PUSH.
| TEST | ( | SmallLocks | , |
| MicroLock | |||
| ) |
| TEST | ( | SmallLocks | , |
| MicroLockTryLock | |||
| ) |
Definition at line 302 of file SmallLocksTest.cpp.
References EXPECT_FALSE, EXPECT_TRUE, and folly::detail::lock().
| FOLLY_PACK_PUSH |
Definition at line 196 of file SmallLocksTest.cpp.
Referenced by folly::exception_wrapper::ExceptionPtr::as_int_(), and TEST().