/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/command_server/ |
H A D | command_server_impl.cpp | 32 threadPool_ = ThreadPool::Create(commandServerName_, MAX_THREAD_NUM); in CommandServerImpl() 38 threadPool_.reset(); in ~CommandServerImpl() 43 … DP_CHECK_ERROR_RETURN_RET_LOG(threadPool_ == nullptr, DP_NOT_AVAILABLE, "threadPool is nullptr."); in AddCommand() 44 if (threadPool_->Submit([cmd]() {cmd->Do();})) { in AddCommand() 53 … DP_CHECK_ERROR_RETURN_RET_LOG(threadPool_ == nullptr, DP_NOT_AVAILABLE, "threadPool is nullptr."); in AddUrgentCommand() 54 if (threadPool_->Submit([cmd]() {cmd->Do();}, true)) { in AddUrgentCommand() 63 DP_CHECK_ERROR_RETURN_LOG(threadPool_ == nullptr, "threadPool is nullptr."); in SetThreadPriority() 64 threadPool_->SetThreadPoolPriority(priority); in SetThreadPriority() 69 … DP_CHECK_ERROR_RETURN_RET_LOG(threadPool_ == nullptr, DEFAULT_PRIORITY, "threadPool is nullptr."); in GetThreadPriority() 70 return threadPool_->GetThreadPoolPriority(); in GetThreadPriority()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_installer_manager.cpp | 200 if (threadPool_ == nullptr) { in AddTask() 202 threadPool_ = std::make_shared<ThreadPool>(THREAD_POOL_NAME); in AddTask() 203 threadPool_->Start(THREAD_NUMBER); in AddTask() 204 threadPool_->SetMaxTaskNum(MAX_TASK_NUMBER); in AddTask() 210 threadPool_->AddTask(task); in AddTask() 221 } while (threadPool_ != nullptr && threadPool_->GetCurTaskNum() != 0); in DelayStopThreadPool() 224 if (threadPool_ == nullptr) { in DelayStopThreadPool() 229 threadPool_->Stop(); in DelayStopThreadPool() 230 threadPool_ = nullptr; in DelayStopThreadPool() 237 if (threadPool_ == nullptr) { in GetCurTaskNum() [all …]
|
/ohos5.0/base/update/updater/test/unittest/script/ |
H A D | threadpool_unittest.cpp | 42 ThreadPoolUnitTest() : threadPool_(ThreadPool::CreateThreadPool(MAX_TASK_NUMBER)) {} in ThreadPoolUnitTest() 47 threadPool_ = nullptr; in ~ThreadPoolUnitTest() 52 if (threadPool_ == nullptr) { in TestThreadPoolCreate() 75 ThreadPool* threadPool_; member in __anon989601c50110::ThreadPoolUnitTest
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/service/src/ |
H A D | collector_impl.cpp | 30 threadPool_("pin_collector_async") in CollectorImpl() 32 threadPool_.Start(1); in CollectorImpl() 37 threadPool_.Stop(); in ~CollectorImpl() 114 threadPool_.AddTask([this, id = scheduleId]() { in Cancel() 133 threadPool_.AddTask([this, id = scheduleId, message = msg]() { in SendMessage() 169 threadPool_.AddTask([this, id = scheduleId, pinData = data, result = resultCode]() { in SetData() 211 threadPool_.AddTask([this, id = scheduleId, extra = extraInfo, callback = callbackObj]() { in Collect()
|
H A D | verifier_impl.cpp | 31 threadPool_("pin_verifier_async") in VerifierImpl() 33 threadPool_.Start(1); in VerifierImpl() 38 threadPool_.Stop(); in ~VerifierImpl() 115 threadPool_.AddTask([this, id = scheduleId]() { in Cancel() 157 threadPool_.AddTask([this, id = scheduleId, role = srcRole, msgIn = msg]() { in SendMessage() 182 threadPool_.AddTask( in Authenticate()
|
H A D | all_in_one_impl.cpp | 41 threadPool_("pin_async") in AllInOneImpl() 43 threadPool_.Start(1); in AllInOneImpl() 48 threadPool_.Stop(); in ~AllInOneImpl() 243 threadPool_.AddTask([hdi = pinHdi_, id = templateId]() { in AuthPin()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/threading/ |
H A D | task_queue.cpp | 46 TaskQueue::TaskQueue(const IThreadPool::Ptr& threadPool) : threadPool_(threadPool), isRunningAsync_… in TaskQueue() 52 CORE_ASSERT(threadPool_ != nullptr); in ExecuteAsync() 58 … asyncOperation_ = threadPool_->Push(IThreadPool::ITask::Ptr { new ExecuteAsyncTask(*this) }); in ExecuteAsync()
|
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/include/module_ipc/ |
H A D | sa_backup_connection.h | 99 threadPool_.Start(BConstants::EXTENSION_THREAD_POOL_COUNT); in SABackupConnection() 103 threadPool_.Stop(); in ~SABackupConnection() 127 OHOS::ThreadPool threadPool_; variable
|
/ohos5.0/base/update/updater/services/script/script_manager/ |
H A D | script_managerImpl.cpp | 65 if (threadPool_) { in ~ScriptManagerImpl() 67 threadPool_ = nullptr; in ~ScriptManagerImpl() 132 …threadPool_ = ThreadPool::CreateThreadPool(threadnum > MAX_THREAD_POOL ? MAX_THREAD_POOL : threadn… in Init() 133 if (threadPool_ == nullptr) { in Init() 224 int32_t threadNumber = threadPool_->GetThreadNumber(); in ExecuteScript()
|
H A D | script_manager_impl.h | 51 ThreadPool *threadPool_ = nullptr; variable
|
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/include/module_sched/ |
H A D | sched_scheduler.h | 81 threadPool_.Start(BConstants::SA_THREAD_POOL_COUNT); in SchedScheduler() 92 OHOS::ThreadPool threadPool_; variable
|
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/server_demo/ |
H A D | file_server_demo.cpp | 40 threadPool_ = std::make_unique<ThreadPool>("fileServerThreadPool"); in StartServer() 41 threadPool_->SetMaxTaskNum(THREAD_POOL_MAX_TASKS); in StartServer() 80 threadPool_->Stop(); in StopServer() 251 threadPool_->AddTask([connFd]() { FileReadFunc(connFd); }); in ServerLoopFunc()
|
H A D | file_server_demo.h | 69 std::unique_ptr<ThreadPool> threadPool_ = nullptr; variable
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/common/ |
H A D | http_server_demo.cpp | 45 threadPool_ = std::make_unique<ThreadPool>("httpServerThreadPool"); in StartServer() 46 threadPool_->SetMaxTaskNum(THREAD_POOL_MAX_TASKS); in StartServer() 85 threadPool_->Stop(); in StopServer() 261 threadPool_->AddTask([connFd]() { FileReadFunc(connFd); }); in ServerLoopFunc()
|
H A D | http_server_demo.h | 70 std::unique_ptr<ThreadPool> threadPool_ = nullptr; variable
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/task_manager/task_group/ |
H A D | base_task_group.cpp | 26 threadPool_(threadPool), in BaseTaskGroup() 127 threadPool_->Submit([task = std::move(task)] { task(); }); in DispatchTaskUnlocked()
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/task_manager/ |
H A D | task_registry.cpp | 25 : name_(name), threadPool_(threadPool), mutex_(), registry_() in TaskRegistry() 47 …ITaskGroup> taskGroup = [delayTask, &name, func = std::move(func), serial, pool = threadPool_] () { in RegisterTaskGroup()
|
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/ |
H A D | ipc_process_skeleton.cpp | 152 delete threadPool_; in ~IPCProcessSkeleton() 153 threadPool_ = nullptr; in ~IPCProcessSkeleton() 309 if (threadPool_ == nullptr) { in SetMaxWorkThread() 311 if (threadPool_ == nullptr) { in SetMaxWorkThread() 316 threadPool_->UpdateMaxThreadNum(maxThreadNum); in SetMaxWorkThread() 328 if (threadPool_ != nullptr) { in SpawnThread() 339 if (threadPool_ != nullptr) { in OnThreadTerminated() 340 return threadPool_->RemoveThread(threadName); in OnThreadTerminated() 781 if (threadPool_ != nullptr) { in GetSocketIdleThreadNum() 782 return threadPool_->GetSocketIdleThreadNum(); in GetSocketIdleThreadNum() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/include/ |
H A D | ext_extension.h | 71 threadPool_.Start(BConstants::EXTENSION_THREAD_POOL_COUNT); 79 threadPool_.Stop(); 300 OHOS::ThreadPool threadPool_;
|
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/src/module_sched/ |
H A D | sched_scheduler.cpp | 86 threadPool_.AddTask(callStart); in Sched() 220 threadPool_.AddTask(tryUnload); in TryUnloadService()
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/include/base/command_server/ |
H A D | command_server_impl.h | 42 std::unique_ptr<ThreadPool> threadPool_; variable
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/include/base/task_manager/ |
H A D | task_registry.h | 47 const ThreadPool* threadPool_; variable
|
/ohos5.0/foundation/filemanagement/app_file_service/services/backup_sa/src/module_ipc/ |
H A D | sa_backup_connection.cpp | 187 threadPool_.AddTask([task]() { in CallBackupSA() 211 threadPool_.AddTask([task]() { in CallRestoreSA()
|
/ohos5.0/foundation/multimedia/camera_framework/services/deferred_processing_service/include/base/task_manager/task_group/ |
H A D | base_task_group.h | 53 const ThreadPool* threadPool_; variable
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/service/inc/ |
H A D | collector_impl.h | 53 OHOS::ThreadPool threadPool_; variable
|