Home
last modified time | relevance | path

Searched refs:ThreadPool (Results 1 - 4 of 4) sorted by relevance

/commonlibrary/c_utils/base/src/
H A Dthread_pool.cpp25 ThreadPool::ThreadPool(const std::string& name) in ThreadPool() function in OHOS::ThreadPool
30 ThreadPool::~ThreadPool() in ~ThreadPool()
37 uint32_t ThreadPool::Start(int numThreads) in Start()
51 // Give the name of ThreadPool to threads created by the ThreadPool. in Start()
61 void ThreadPool::Stop() in Stop()
74 void ThreadPool::AddTask(const Task &f) in AddTask()
89 size_t ThreadPool
[all...]
/commonlibrary/c_utils/base/include/
H A Dthread_pool.h36 class ThreadPool : public NoCopyable { class
51 explicit ThreadPool(const std::string &name = std::string());
52 ~ThreadPool() override;
/commonlibrary/c_utils/base/test/benchmarktest/thread_pool_benchmark_test/
H A Dthread_pool_benchmark_test.cpp66 ThreadPool pool; in BENCHMARK_F()
85 ThreadPool pool("test_02_pool"); in BENCHMARK_F()
105 ThreadPool pool("test_02_pool"); in BENCHMARK_F()
127 ThreadPool pool; in BENCHMARK_F()
158 static void AddPoolTaskByForLoop(ThreadPool& pool, const int loopIterations, void(*p)(int&)) in AddPoolTaskByForLoop()
178 ThreadPool pool; in BENCHMARK_F()
214 ThreadPool pool; in BENCHMARK_F()
270 ThreadPool pool; in BENCHMARK_F()
316 ThreadPool pool; in BENCHMARK_F()
371 * Test_09 is used to verify the name set to ThreadPool wil
[all...]
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_thread_pool_test.cpp67 ThreadPool pool; in HWTEST_F()
76 ThreadPool pool("test_02_pool"); in HWTEST_F()
85 ThreadPool pool("test_02_pool"); in HWTEST_F()
95 ThreadPool pool; in HWTEST_F()
122 ThreadPool pool; in HWTEST_F()
150 ThreadPool pool; in HWTEST_F()
200 ThreadPool pool; in HWTEST_F()
235 ThreadPool pool; in HWTEST_F()
287 * Test_09 is used to verify the name set to ThreadPool will be set as the real name of threads in pool.
292 ThreadPool poo in HWTEST_F()
[all...]

Completed in 2 milliseconds