21 using namespace folly;
24 typedef std::vector<TimeoutQueue::Id> EventVec;
40 bool r = (EventVec{3, 1, 2} == events);
45 r = (EventVec{3} == events);
50 typedef std::vector<TimeoutQueue::Id> EventVec;
70 bool r = (EventVec{1, 1, 1, 2} == events);
int64_t runOnce(int64_t now)
int64_t runLoop(int64_t now)
Id add(int64_t now, int64_t delay, Callback callback)
#define EXPECT_EQ(val1, val2)
std::chrono::steady_clock::time_point now()
—— Concurrent Priority Queue Implementation ——
std::function< void(Id, int64_t)> Callback
Id addRepeating(int64_t now, int64_t interval, Callback callback)
#define EXPECT_TRUE(condition)
#define EXPECT_LT(val1, val2)
TEST(SequencedExecutor, CPUThreadPoolExecutor)