Searched refs:CommonPool (Results 1 – 7 of 7) sorted by relevance
30 TEST(CommonPool, post) { in TEST() argument32 CommonPool::post([&ran] { ran = true; }); in TEST()45 futures[i] = CommonPool::async([] { in TEST()53 EXPECT_EQ(threads.size(), CommonPool::THREAD_COUNT); in TEST()57 TEST(CommonPool, singleThread) { in TEST() argument63 auto f1 = CommonPool::async([&] { in TEST()82 auto f2 = CommonPool::async([] { in TEST()104 static constexpr auto QUEUE_COUNT = CommonPool::THREAD_COUNT + CommonPool::QUEUE_SIZE + 10; in TEST()110 futures[i] = CommonPool::async([&] { in TEST()126 EXPECT_GT(queuedCount.load(), CommonPool::QUEUE_SIZE); in TEST()[all …]
28 CommonPool::CommonPool() { in CommonPool() function in android::uirenderer::CommonPool31 CommonPool* pool = this; in CommonPool()52 CommonPool& CommonPool::instance() { in instance()53 static CommonPool pool; in instance()57 void CommonPool::post(Task&& task) { in post()61 void CommonPool::enqueue(Task&& task) { in enqueue()74 void CommonPool::workerLoop() { in workerLoop()93 void CommonPool::waitForIdle() { in waitForIdle()97 void CommonPool::doWaitForIdle() { in doWaitForIdle()
75 class CommonPool {76 PREVENT_COPY_AND_ASSIGN(CommonPool);104 static CommonPool& instance();106 CommonPool();107 ~CommonPool() {} in ~CommonPool()
88 virtual void add(std::function<void(void)> func) override { CommonPool::post(std::move(func)); } in add()
654 mFrameFences.push_back(CommonPool::async(std::move(func))); in enqueueFrameWork()
194 "thread/CommonPool.cpp",
226 CommonPool::post([data, filename] { in savePictureAsync()