Home
last modified time | relevance | path

Searched refs:ThreadPool (Results 1 – 14 of 14) sorted by relevance

/base/update/updater/services/script/threadpool/
Dthreadpool.cpp20 static ThreadPool* g_threadPool = nullptr;
23 ThreadPool* ThreadPool::CreateThreadPool(int number) in CreateThreadPool()
33 g_threadPool = new ThreadPool(); in CreateThreadPool()
38 void ThreadPool::Destroy() in Destroy()
48 void ThreadPool::Init(int32_t numberThread) in Init()
60 workers_.emplace_back(std::thread(ThreadPool::ThreadExecute, this, threadIndex)); in Init()
64 void ThreadPool::ThreadRun(int32_t threadIndex) in ThreadRun()
78 ThreadPool::~ThreadPool() in ~ThreadPool()
94 void ThreadPool::AddTask(Task &&task) in AddTask()
101 void ThreadPool::AddNewTask(Task &&task) in AddNewTask()
[all …]
Dthread_pool.h35 class ThreadPool {
37 static ThreadPool* CreateThreadPool(int32_t number);
57 ((ThreadPool*)context)->ThreadRun(threadIndex); in ThreadExecute()
60 ThreadPool() in ThreadPool() function
63 ~ThreadPool();
/base/update/updater/test/unittest/script/
Dthreadpool_unittest.cpp42 ThreadPoolUnitTest() : threadPool_(ThreadPool::CreateThreadPool(MAX_TASK_NUMBER)) {} in ThreadPoolUnitTest()
46 ThreadPool::Destroy(); in ~ThreadPoolUnitTest()
65 ThreadPool::AddTask(std::move(task)); in TestThreadPoolCreate()
75 ThreadPool* threadPool_;
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/
Dtoken_modify_notifier.h47 OHOS::ThreadPool notifyTokenWorker_;
Daccesstoken_info_manager.h96 OHOS::ThreadPool tokenDataWorker_;
/base/useriam/face_auth/services_ex/src/
Dthread_handler_impl.cpp43 OHOS::ThreadPool pool_;
/base/useriam/user_auth_framework/services/base/src/
Dthread_handler_impl.cpp43 OHOS::ThreadPool pool_;
/base/update/updater/services/script/script_manager/
Dscript_managerImpl.cpp66 ThreadPool::Destroy(); in ~ScriptManagerImpl()
89 threadPool_ = ThreadPool::CreateThreadPool(MAX_PRIORITY); in Init()
231 ThreadPool::AddTask(std::move(task)); in ExecuteScript()
Dscript_manager_impl.h51 ThreadPool *threadPool_ = nullptr;
/base/security/access_token/services/privacymanager/include/record/
Dpermission_used_record_cache.h74 OHOS::ThreadPool readRecordBufferTaskWorker_;
Dpermission_record_manager.h113 OHOS::ThreadPool deleteTaskWorker_;
/base/update/updater/test/unittest/test_data/applypatch/
DTestGZipModeImagePatch.old.gz
/base/update/updater/test/unittest/test_data/diffpatch/
DPatchGztest_new.gz
DPatchGztest_old.gz1[==========] Running 25 tests from 7 test ...