25 int const expected = 10;
31 observer->scheduleTimeout(std::chrono::milliseconds(100));
40 int const expected = 10;
44 std::chrono::milliseconds(100), manager, [&]()
noexcept {
55 int const expected = 10;
59 std::chrono::milliseconds(0), manager, [&]()
noexcept {
69 int const expected = 10;
75 std::weak_ptr<RequestContext> rctx_weak_ptr;
80 observer->scheduleTimeout(std::chrono::milliseconds(100));
81 observer->cancelTimeout();
95 int const expected = 10;
97 std::unique_ptr<AsyncTimeout> observer;
98 std::weak_ptr<RequestContext> rctx_weak_ptr;
105 std::chrono::milliseconds(100), manager, [&]()
noexcept {
114 EXPECT_EQ(rctx_weak_ptr.expired(),
true);
#define EXPECT_EQ(val1, val2)
—— Concurrent Priority Queue Implementation ——
requires E e noexcept(noexcept(s.error(std::move(e))))
static std::shared_ptr< RequestContext > saveContext()
static std::unique_ptr< AsyncTimeout > make(TimeoutManager &manager, TCallback &&callback)
static std::unique_ptr< AsyncTimeout > schedule(TimeoutManager::timeout_type timeout, TimeoutManager &manager, TCallback &&callback)
#define EXPECT_NE(val1, val2)
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)
TEST(SequencedExecutor, CPUThreadPoolExecutor)