Home
last modified time | relevance | path

Searched refs:g_promise (Results 1 – 2 of 2) sorted by relevance

/system/bt/common/benchmark/
Dtimer_performance_benchmark.cc39 std::shared_ptr<std::promise<void>> g_promise; variable
46 void TimerFire(void*) { g_promise->set_value(); } in TimerFire()
55 g_promise->set_value(); in AlarmSleepAndCountDelayedTime()
66 g_promise = std::make_shared<std::promise<void>>(); in SetUp()
70 g_promise = nullptr; in TearDown()
83 g_promise->get_future().get(); in BENCHMARK_DEFINE_F()
110 g_promise = std::make_shared<std::promise<void>>(); in SetUp()
114 g_promise = nullptr; in TearDown()
137 g_promise->get_future().get(); in BENCHMARK_DEFINE_F()
162 g_promise = std::make_shared<std::promise<void>>(); in SetUp()
[all …]
/system/bt/gd/os/linux_generic/
Dreactor_unittest.cc38 std::promise<int>* g_promise; variable
43 g_promise = new std::promise<int>; in SetUp()
48 delete g_promise; in TearDown()
49 g_promise = nullptr; in TearDown()
100 if (value == kSetPromise && g_promise != nullptr) { in OnReadReady()
101 g_promise->set_value(kReadReadyValue); in OnReadReady()
108 g_promise->set_value(kReadReadyValue); in OnReadReady()
112 g_promise->set_value(kReadReadyValue); in OnReadReady()
128 g_promise->set_value(kReadReadyValue); in UnregisterInCallback()
202 auto future = g_promise->get_future(); in TEST_F()
[all …]