28 using namespace folly;
46 for (
size_t i = 0;
i < 4; ++
i) {
71 ebt2.getEventBase()->runInEventBaseThread([&] { done.post(); });
82 ebt.getEventBase()->runInEventBaseThread([&] { done.post(); });
90 auto ebm_eb =
static_cast<EventBase*
>(
nullptr);
92 EXPECT_EQ(uintptr_t(ebt_eb), uintptr_t(ebm_eb));
99 auto ebm_eb =
static_cast<EventBase*
>(
nullptr);
101 EXPECT_EQ(uintptr_t(ebt_eb), uintptr_t(ebm_eb));
EventBase * getEventBase() const
bool runInEventBaseThreadAndWait(void(*fn)(T *), T *arg)
#define EXPECT_EQ(val1, val2)
constexpr detail::Map< Move > move
—— Concurrent Priority Queue Implementation ——
FOLLY_ALWAYS_INLINE bool try_wait_for(const std::chrono::duration< Rep, Period > &timeout, const WaitOptions &opt=wait_options()) noexcept
EventBase * getEventBase() const
bool runInEventBaseThread(void(*fn)(T *), T *arg)
static const char *const value
#define EXPECT_NE(val1, val2)
TEST_F(EventBaseThreadTest, example)
Optional< std::string > getCurrentThreadName()
PUSHMI_INLINE_VAR constexpr detail::get_fn< T > get
#define ASSERT_TRUE(condition)
void start(folly::StringPiece threadName=folly::StringPiece())