Home
last modified time | relevance | path

Searched refs:thread_ (Results 1 – 13 of 13) sorted by relevance

/base/hiviewdfx/hiview/base/
Devent_dispatch_queue.cpp97 if (thread_ != nullptr && thread_->joinable()) { in Stop()
98 thread_->join(); in Stop()
107 thread_ = std::make_unique<std::thread>(&EventDispatchQueue::Run, this); in Start()
Devent_loop.cpp132 thread_ = std::make_unique<std::thread>(&EventLoop::Run, this); in StartLoop()
155 if (thread_ != nullptr && thread_->joinable()) { in StopLoop()
156 thread_->join(); in StopLoop()
/base/request/request/frameworks/js/napi/src/legacy/
Ddownload_task.cpp40 delete thread_; in ~DownloadTask()
165 thread_ = new (std::nothrow) std::thread(&DownloadTask::Run, this); in Start()
166 if (thread_ == nullptr) { in Start()
170 thread_->detach(); in Start()
/base/notification/eventhandler/frameworks/eventhandler/src/
Devent_runner.cpp89 if ((!thread_) && (needCreateThread_)) { in ReclaimCurrentThread()
91 thread_ = std::make_unique<std::thread>(&ThreadCollector::Run, this); in ReclaimCurrentThread()
152 if ((thread_) && (thread_->joinable())) { in Stop()
154 thread_->join(); in Stop()
226 std::unique_ptr<std::thread> thread_; member in OHOS::AppExecFwk::__anon3987a0390111::ThreadCollector
257 : collectorLock_(), condition_(), reclaims_(), depositMap_(), threadLock_(), thread_(nullptr) in ThreadCollector()
/base/request/request/frameworks/js/napi/src/upload/
Dupload_task.cpp170 thread_ = std::make_unique<std::thread>(UploadTask::Run, shared_from_this()); in ExecuteTask()
171 thread_handle_ = thread_->native_handle(); in ExecuteTask()
172 thread_->detach(); in ExecuteTask()
/base/hiviewdfx/hiview/base/include/
Devent_dispatch_queue.h56 std::unique_ptr<std::thread> thread_; variable
Devent_loop.h155 std::unique_ptr<std::thread> thread_; variable
/base/request/request/frameworks/js/napi/include/legacy/
Ddownload_task.h61 std::thread *thread_ {};
/base/request/request/frameworks/js/napi/include/upload/
Dupload_task.h68 std::unique_ptr<std::thread> thread_; variable
/base/msdp/device_status/libs/include/
Ddevicestatus_msdp_mock.h76 std::shared_ptr<std::thread> thread_ { nullptr };
/base/msdp/device_status/libs/src/
Ddevicestatus_msdp_mock.cpp221 thread_ = std::make_shared<std::thread>(&DeviceStatusMsdpMock::LoopingThreadEntry, this); in StartThread()
222 thread_ ->detach(); in StartThread()
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_main/
Ddlp_permission_service.cpp62 thread_ = nullptr; in DlpPermissionService()
590 if (thread_ != nullptr && !thread_->joinable()) { // avoid double assign to an active thread in StartTimer()
594 thread_ = std::make_shared<std::thread>(&DlpPermissionService::TerminalService, this); in StartTimer()
595 thread_->detach(); in StartTimer()
Ddlp_permission_service.h95 std::shared_ptr<std::thread> thread_; variable