Searched refs:g_promise (Results 1 – 2 of 2) sorted by relevance
40 std::shared_ptr<std::promise<void>> g_promise; variable47 void TimerFire(void*) { g_promise->set_value(); } in TimerFire()56 g_promise->set_value(); in AlarmSleepAndCountDelayedTime()67 g_promise = std::make_shared<std::promise<void>>(); in SetUp()71 g_promise = nullptr; in TearDown()84 g_promise->get_future().get(); in BENCHMARK_DEFINE_F()111 g_promise = std::make_shared<std::promise<void>>(); in SetUp()115 g_promise = nullptr; in TearDown()138 g_promise->get_future().get(); in BENCHMARK_DEFINE_F()163 g_promise = std::make_shared<std::promise<void>>(); in SetUp()[all …]
32 std::promise<int>* g_promise; variable37 g_promise = new std::promise<int>; in SetUp()42 delete g_promise; in TearDown()43 g_promise = nullptr; in TearDown()92 if (value == kSetPromise && g_promise != nullptr) { in OnReadReady()93 g_promise->set_value(kReadReadyValue); in OnReadReady()98 g_promise->set_value(kReadReadyValue); in OnReadReady()102 g_promise->set_value(kReadReadyValue); in OnReadReady()155 auto future = g_promise->get_future(); in TEST_F()167 auto future = g_promise->get_future(); in TEST_F()[all …]