Searched refs:epfd (Results 1 – 4 of 4) sorted by relevance
/base/powermgr/thermal_manager/application/protector/src/ |
D | thermal_protector_timer.cpp | 71 int32_t ThermalProtectorTimer::RegisterCallback(const int32_t fd, const EventType et, int32_t epfd) in RegisterCallback() argument 79 THERMAL_HILOGI(FEATURE_PROTECTOR, "%{public}d, %{public}d", epfd, fd); in RegisterCallback() 82 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev) == -1) { in RegisterCallback() 141 int32_t ThermalProtectorTimer::LoopingThreadEntry(void *arg, int32_t epfd) in LoopingThreadEntry() argument 145 THERMAL_HILOGI(FEATURE_PROTECTOR, "%{public}d, %{public}zu", epfd, eventct); in LoopingThreadEntry() 150 int32_t nevents = epoll_wait(epfd, events, eventct, -1); in LoopingThreadEntry() 164 void ThermalProtectorTimer::Run(void *service, int32_t epfd) in Run() argument 166 …std::make_unique<std::thread>(&ThermalProtectorTimer::LoopingThreadEntry, this, service, epfd)->jo… in Run()
|
D | thermal_sensor_provider.cpp | 177 int32_t ThermalSensorProvider::RegisterCallback(const int fd, const EventType et, int32_t epfd) in RegisterCallback() argument 186 THERMAL_HILOGI(FEATURE_PROTECTOR, "epfd: %{public}d, fd: %{public}d", epfd, fd); in RegisterCallback() 189 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fd, &ev) == -1) { in RegisterCallback() 197 int32_t ThermalSensorProvider::LoopingThreadEntry(void *arg, int32_t epfd) in LoopingThreadEntry() argument 201 THERMAL_HILOGD(FEATURE_PROTECTOR, "epfd: %{public}d, eventct: %{public}zu", epfd, eventct); in LoopingThreadEntry() 203 int32_t nevents = epoll_wait(epfd, events, eventct, -1); in LoopingThreadEntry() 216 void ThermalSensorProvider::Run(void *service, int32_t epfd) in Run() argument 218 …std::make_unique<std::thread>(&ThermalSensorProvider::LoopingThreadEntry, this, service, epfd)->jo… in Run()
|
/base/powermgr/thermal_manager/application/protector/include/ |
D | thermal_protector_timer.h | 39 int32_t LoopingThreadEntry(void *arg, int32_t epfd); 40 void Run(void *service, int32_t epfd); 42 int32_t RegisterCallback(const int32_t fd, const EventType et, int32_t epfd);
|
D | thermal_sensor_provider.h | 52 int32_t LoopingThreadEntry(void *arg, int32_t epfd); 53 void Run(void *service, int32_t epfd); 55 int32_t RegisterCallback(const int fd, const EventType et, int32_t epfd);
|