Home
last modified time | relevance | path

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

/system/bt/common/benchmark/
Dthread_performance_benchmark.cc37 static std::unique_ptr<std::promise<void>> g_counter_promise = nullptr; variable
45 g_counter_promise->set_value(); in pthread_callback_batch()
49 void callback_sequential(void* context) { g_counter_promise->set_value(); } in callback_sequential()
54 g_counter_promise->set_value(); in callback_sequential_queue()
62 g_counter_promise->set_value(); in callback_batch()
78 g_counter_promise.reset(nullptr); in TearDown()
138 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
139 std::future<void> counter_future = g_counter_promise->get_future(); in BENCHMARK_F()
152 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
153 std::future<void> counter_future = g_counter_promise->get_future(); in BENCHMARK_F()
[all …]
/system/bt/common/test/
Dthread_performance_test.cc39 static std::unique_ptr<std::promise<void>> g_counter_promise = nullptr; variable
47 g_counter_promise->set_value(); in callback_batch()
62 g_counter_promise.reset(nullptr); in TearDown()
120 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
121 std::future<void> counter_future = g_counter_promise->get_future(); in TEST_F()
165 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
166 std::future<void> counter_future = g_counter_promise->get_future(); in TEST_F()
210 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
211 std::future<void> counter_future = g_counter_promise->get_future(); in TEST_F()
251 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
[all …]