/ohos5.0/base/powermgr/thermal_manager/application/protector/src/ |
H A 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>([this, service, epfd] { this->LoopingThreadEntry(service, epfd); })-… in Run()
|
H A 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>([this, service, epfd] { this->LoopingThreadEntry(service, epfd); })-… in Run()
|
/ohos5.0/foundation/communication/wifi/wifi/base/cRPC/src/ |
H A D | evloop.c | 40 evLoop->epfd = -1; in CreateEventLoop() 53 evLoop->epfd = epoll_create(ELOOP_MAX_FD_SIZE); in CreateEventLoop() 54 if (evLoop->epfd == -1) { in CreateEventLoop() 82 if (loop->epfd != -1) { in DestroyEventLoop() 83 close(loop->epfd); in DestroyEventLoop() 128 if (epoll_ctl(loop->epfd, op, fd, &pollEvent) == -1) { in AddFdEvent() 165 if (epoll_ctl(loop->epfd, op, fd, &pollEvent) == -1) { in DelFdEvent()
|
H A D | server.c | 227 int retval = epoll_wait(loop->epfd, loop->epEvents, loop->setSize, -1); in RunRpcLoop()
|
/ohos5.0/base/powermgr/thermal_manager/application/protector/include/ |
H A 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);
|
H A 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);
|
/ohos5.0/foundation/communication/wifi/wifi/base/cRPC/include/ |
H A D | evloop.h | 35 int epfd; member
|
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/ |
H A D | c_utils_guide_event.md | 74 - int epfd
|