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.cc40 std::shared_ptr<std::promise<void>> g_promise; variable
47 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 …]
/system/bt/gd/os/linux_generic/
Dreactor_unittest.cc32 std::promise<int>* g_promise; variable
37 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 …]