proxygen
|
#include <thread>
#include <unordered_set>
#include <vector>
#include <folly/SingletonThreadLocal.h>
#include <folly/Synchronized.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
TEST (SingletonThreadLocalTest, OneSingletonPerThread) | |
TEST (SingletonThreadLocalTest, MoveConstructibleMake) | |
TEST (SingletonThreadLocalTest, NotMoveConstructibleMake) | |
TEST (SingletonThreadLocalTest, AccessAfterFastPathDestruction) | |
TEST (ThreadLocal, DependencyTest) | |
TEST (SingletonThreadLocalTest, Reused) | |
TEST | ( | SingletonThreadLocalTest | , |
OneSingletonPerThread | |||
) |
Definition at line 41 of file SingletonThreadLocalTest.cpp.
References EXPECT_EQ, folly::pushmi::operators::get, threads, and folly::fibers::yield().
TEST | ( | SingletonThreadLocalTest | , |
MoveConstructibleMake | |||
) |
Definition at line 67 of file SingletonThreadLocalTest.cpp.
References a, b, EXPECT_EQ, folly::SingletonThreadLocal< T, Tag, Make, TLTag >::get(), and single.
TEST | ( | SingletonThreadLocalTest | , |
NotMoveConstructibleMake | |||
) |
Definition at line 84 of file SingletonThreadLocalTest.cpp.
References a, b, EXPECT_EQ, folly::SingletonThreadLocal< T, Tag, Make, TLTag >::get(), and single.
TEST | ( | SingletonThreadLocalTest | , |
AccessAfterFastPathDestruction | |||
) |
Definition at line 101 of file SingletonThreadLocalTest.cpp.
References counter, EXPECT_EQ, folly::SingletonThreadLocal< T, Tag, Make, TLTag >::get(), and i.
TEST | ( | ThreadLocal | , |
DependencyTest | |||
) |
Definition at line 119 of file SingletonThreadLocalTest.cpp.
References folly::data(), folly::pushmi::operators::get, and folly::join().
TEST | ( | SingletonThreadLocalTest | , |
Reused | |||
) |
Definition at line 143 of file SingletonThreadLocalTest.cpp.
References folly::data(), EXPECT_EQ, FOLLY_DECLARE_REUSED, i, and string.