proxygen
|
#include <folly/PackedSyncPtr.h>
#include <cinttypes>
#include <thread>
#include <unordered_map>
#include <utility>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Classes | |
struct | SyncVec< T > |
Typedefs | |
typedef SyncVec< intptr_t > | VecT |
typedef std::unordered_map< int64_t, VecT > | Map |
Functions | |
TEST (PackedSyncPtr, Basic) | |
static Map | map (mapCap) |
void | appThread (intptr_t id) |
TEST (PackedSyncPtr, Application) | |
TEST (PackedSyncPtr, extraData) | |
Variables | |
const int | mapCap = 1317 |
const int | nthrs = 297 |
Definition at line 101 of file PackedSyncPtrTest.cpp.
Definition at line 100 of file PackedSyncPtrTest.cpp.
void appThread | ( | intptr_t | id | ) |
Definition at line 108 of file PackedSyncPtrTest.cpp.
Referenced by TEST().
Referenced by folly::AtomicHashArray< KeyT, ValueT, HashFcn, EqualFcn, Allocator, ProbeFcn, KeyConvertFcn >::create(), folly::settings::Snapshot::forEachSetting(), testing::internal::GetThreadCount(), runSingleInsert(), runVisitContiguousRangesTest(), TEST(), TEST_F(), wangle::ServerWorkerPool::threadNotYetStopped(), and foo::StreamableTemplateInFoo< T >::value().
TEST | ( | PackedSyncPtr | , |
Basic | |||
) |
Definition at line 42 of file PackedSyncPtrTest.cpp.
References EXPECT_EQ, folly::PackedSyncPtr< T >::extra(), folly::gen::first, folly::PackedSyncPtr< T >::get(), folly::PackedSyncPtr< T >::init(), folly::PackedSyncPtr< T >::lock(), folly::PackedSyncPtr< T >::set(), folly::PackedSyncPtr< T >::setExtra(), and folly::PackedSyncPtr< T >::unlock().
TEST | ( | PackedSyncPtr | , |
Application | |||
) |
Definition at line 116 of file PackedSyncPtrTest.cpp.
References appThread(), EXPECT_EQ, EXPECT_TRUE, i, int64_t, nthrs, and folly::pushmi::detail::t.
TEST | ( | PackedSyncPtr | , |
extraData | |||
) |
Definition at line 138 of file PackedSyncPtrTest.cpp.
References EXPECT_EQ, folly::PackedSyncPtr< T >::get(), folly::PackedSyncPtr< T >::init(), folly::PackedSyncPtr< T >::lock(), folly::PackedSyncPtr< T >::set(), and folly::PackedSyncPtr< T >::unlock().
const int mapCap = 1317 |
Definition at line 102 of file PackedSyncPtrTest.cpp.
const int nthrs = 297 |
Definition at line 103 of file PackedSyncPtrTest.cpp.
Referenced by TEST().