Home
last modified time | relevance | path

Searched refs:looper (Results 1 – 16 of 16) sorted by relevance

/base/hiviewdfx/hiview/base/test/unittest/common/
Dplugin_example.cpp36 auto looper = std::make_shared<EventLoop>("PluginExample"); in OnLoad() local
37 if (looper != nullptr) { in OnLoad()
38 looper->StartLoop(); in OnLoad()
39 BindWorkLoop(looper); in OnLoad()
/base/hiviewdfx/hiview/plugins/event_store/store/
Dsys_event_db_mgr.cpp38 void SysEventDbMgr::StartCheckStoreTask(std::shared_ptr<EventLoop> looper) in StartCheckStoreTask() argument
40 if (looper == nullptr) { in StartCheckStoreTask()
47 looper->AddTimerEvent(nullptr, nullptr, statusTask, delay, true); in StartCheckStoreTask()
/base/update/updateservice/services/startup/manage/include/
Dstartup_schedule.h31 virtual void RegisterLooper(const ScheduleLooper &looper) = 0;
40 void RegisterLooper(const ScheduleLooper &looper) final;
/base/update/updateservice/services/startup/manage/src/
Dstartup_schedule.cpp39 void StartupSchedule::RegisterLooper(const ScheduleLooper &looper) in RegisterLooper() argument
42 RegisterRepeatingAlarm(BusinessAlarmType::STARTUP, [=]() { looper(); }); in RegisterLooper()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/
Dsys_event_service_adapter.cpp77 void SysEventServiceAdapter::SetWorkLoop(std::shared_ptr<EventLoop> looper) in SetWorkLoop() argument
84 service->SetWorkLoop(looper); in SetWorkLoop()
Dsys_event_service_adapter.h29 static void SetWorkLoop(std::shared_ptr<EventLoop> looper);
/base/hiviewdfx/hiview/plugins/faultlogger/service/
Dfaultlog_manager.h35 explicit FaultLogManager(std::shared_ptr<EventLoop> looper) : looper_(looper) {}; in FaultLogManager() argument
/base/hiviewdfx/hiview/plugins/event_store/include/
Dsys_event_db_mgr.h32 void StartCheckStoreTask(std::shared_ptr<EventLoop> looper);
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
Ddata_publisher.h47 void SetWorkLoop(std::shared_ptr<EventLoop> looper);
Dsys_event_service_ohos.h89 void SetWorkLoop(std::shared_ptr<EventLoop> looper);
/base/hiviewdfx/hiview/plugins/sysevent_source/
Dsysevent_source.cpp69 std::shared_ptr<EventLoop> looper = GetHiviewContext()->GetSharedWorkLoop(); in OnLoad() local
70 platformMonitor_.StartMonitor(looper); in OnLoad()
Dplatform_monitor.cpp423 void PlatformMonitor::StartMonitor(std::shared_ptr<EventLoop> looper) in StartMonitor() argument
425 if (looper == nullptr) { in StartMonitor()
431 looper_ = looper; in StartMonitor()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Ddata_publisher.cpp218 void DataPublisher::SetWorkLoop(std::shared_ptr<EventLoop> looper) in SetWorkLoop() argument
220 if (looper == nullptr) { in SetWorkLoop()
224 looper_ = looper; in SetWorkLoop()
Dsys_event_service_ohos.cpp562 void SysEventServiceOhos::SetWorkLoop(std::shared_ptr<EventLoop> looper) in SetWorkLoop() argument
564 if (looper == nullptr) { in SetWorkLoop()
568 dataPublisher_->SetWorkLoop(looper); in SetWorkLoop()
/base/hiviewdfx/hiview/plugins/sysevent_source/include/
Dplatform_monitor.h65 void StartMonitor(std::shared_ptr<EventLoop> looper);
/base/hiviewdfx/hiview/core/
Dhiview_platform.cpp716 auto looper = target->GetWorkLoop(); in UnloadPlugin() local
717 if (looper == nullptr) { in UnloadPlugin()
721 auto looperName = looper->GetName(); in UnloadPlugin()
723 if (looper.use_count() <= 3) { in UnloadPlugin()
724 HIVIEW_LOGI("%s has refs(%ld).", looperName.c_str(), looper.use_count()); in UnloadPlugin()
725 looper->StopLoop(); in UnloadPlugin()