Home
last modified time | relevance | path

Searched refs:epoll (Results 1 - 25 of 28) sorted by relevance

12

/base/startup/init/services/loopevent/loop/
H A Dle_epoll.c41 EventEpoll *epoll = (EventEpoll *)loop; in Close_() local
42 LE_LOGV("Close_ epollFd %d", epoll->epollFd); in Close_()
43 close(epoll->epollFd); in Close_()
44 free(epoll); in Close_()
51 EventEpoll *epoll = (EventEpoll *)loop; in AddEvent_() local
57 if (IsValid_(epoll) && fd >= 0) { in AddEvent_()
58 ret = epoll_ctl(epoll->epollFd, EPOLL_CTL_ADD, fd, &event); in AddEvent_()
67 EventEpoll *epoll = (EventEpoll *)loop; in ModEvent_() local
73 if (IsValid_(epoll) && fd >= 0) { in ModEvent_()
74 ret = epoll_ctl(epoll in ModEvent_()
83 EventEpoll *epoll = (EventEpoll *)loop; DelEvent_() local
99 EventEpoll *epoll = (EventEpoll *)loop; RunLoop_() local
148 EventEpoll *epoll = (EventEpoll *)malloc(sizeof(EventEpoll) + sizeof(struct epoll_event) * (maxevents)); CreateEpollLoop() local
[all...]
H A Dle_epoll.h17 #include <sys/epoll.h>
/base/msdp/device_status/rust/modules/scheduler/test/src/
H A Dlib.rs163 let epoll = Arc::new(EpollHandler::new()); in test_add_epoll_handler()
164 assert!(handler.add_epoll_handler(epoll.clone()).is_ok()); in test_add_epoll_handler()
167 epoll.signal(data); in test_add_epoll_handler()
168 assert!(epoll.wait(Duration::from_millis(100))); in test_add_epoll_handler()
169 info!(LOG_LABEL, "In test_add_epoll_handler, data:{}", @public(epoll.data())); in test_add_epoll_handler()
170 assert_eq!(epoll.data(), data); in test_add_epoll_handler()
171 assert!(handler.remove_epoll_handler(epoll).is_ok()); in test_add_epoll_handler()
211 let epoll = Arc::new(EpollHandler::new()); in test_post_perioric_task()
212 let cloned_epoll = epoll.clone(); in test_post_perioric_task()
213 assert!(handler.add_epoll_handler(epoll in test_post_perioric_task()
[all...]
/base/msdp/device_status/rust/modules/scheduler/sys/src/
H A Dscheduler.rs16 //! Implementation of epoll event loop.
54 /// Abstraction of epoll handler.
56 /// Return file descriptor of this epoll handler.
58 /// Dispatch epoll events to this epoll handler.
119 /// `Driver` encapsulate event loop of epoll.
121 epoll: Arc<Epoll>,
126 fn new(epoll: Arc<Epoll>, is_running: Arc<AtomicBool>) -> Self in new()
128 Self { epoll, is_running } in new()
141 if let Some(epoll_events) = self.epoll in run()
[all...]
/base/msdp/device_status/intention/prototype/include/
H A Di_epoll_event_source.h19 #include <sys/epoll.h>
/base/notification/eventhandler/frameworks/eventhandler/include/
H A Dffrt_descriptor_listener.h22 #include <sys/epoll.h>
H A Depoll_io_waiter.h23 #include <sys/epoll.h>
34 // Use epoll to listen file descriptor.
42 * Initialize epoll.
66 // File descriptor for epoll.
68 // File descriptor used to wake up epoll.
H A Ddeamon_io_waiter.h23 #include <sys/epoll.h>
34 // Use epoll to listen file descriptor.
43 * Initialize epoll.
69 // File descriptor for epoll.
71 // File descriptor used to wake up epoll.
/base/msdp/device_status/utils/ipc/include/
H A Dstream_socket.h24 #include <sys/epoll.h>
/base/hiviewdfx/hiview/base/test/unittest/common/
H A Devent_loop_test.h19 #include <sys/epoll.h>
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/
H A Dfault_detector_manager.cpp21 #include <sys/epoll.h>
/base/msdp/device_status/intention/services/device_manager/src/
H A Dmonitor.cpp21 #include <sys/epoll.h>
H A Ddevice_manager.cpp23 #include <sys/epoll.h>
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_event_source_example/
H A Dbundle_event_source_example.cpp23 #include <sys/epoll.h>
/base/powermgr/thermal_manager/application/protector/src/
H A Dthermal_protector_timer.cpp22 #include <sys/epoll.h>
56 THERMAL_HILOGE(FEATURE_PROTECTOR, "epoll create failed, epFd_ is invalid"); in CreateProvisionFd()
H A Dthermal_sensor_provision.cpp31 #include <sys/epoll.h>
H A Dthermal_sensor_provider.cpp22 #include <sys/epoll.h>
126 THERMAL_HILOGE(FEATURE_PROTECTOR, "epoll create failed, epFd_ is invalid"); in CreateProviderFd()
/base/msdp/device_status/libs/src/
H A Ddevicestatus_algorithm_manager.cpp23 #include <sys/epoll.h>
H A Ddevicestatus_msdp_mock.cpp22 #include <sys/epoll.h>
128 FI_HILOGE("Create epoll fd failed"); in InitTimer()
135 FI_HILOGE("Close epoll fd failed, error:%{public}s, epFd_:%{public}d", strerror(errno), epFd_); in InitTimer()
/base/powermgr/battery_manager/charger/src/
H A Dbattery_thread.cpp18 #include <sys/epoll.h>
124 BATTERY_HILOGE(FEATURE_CHARGING, "epoll create failed, epFd_ is invalid"); in Init()
/base/time/time_service/services/timer/src/
H A Dtimer_handler.cpp18 #include <sys/epoll.h>
/base/hiviewdfx/hiview/test/plugins/examples/event_source_example/
H A Devent_source_example.cpp23 #include <sys/epoll.h>
/base/notification/eventhandler/frameworks/eventhandler/src/
H A Depoll_io_waiter.cpp21 #include <sys/epoll.h>
77 HILOGE("Failed to create epoll, %{public}s", errmsg); in Init()
93 HILOGE("Failed to add awaken file descriptor into epoll, %{public}s", errmsg); in Init()
97 // Prepare epoll successfully. in Init()
141 HILOGE("Failed to wait epoll, %{public}s", errmsg); in WaitFor()
152 // Transform epoll events into file descriptor listener events. in WaitFor()
226 // Transform file descriptor listener events into epoll events. in AddFileDescriptor()
241 HILOGE("Failed to add file descriptor into epoll, %{public}s", errmsg); in AddFileDescriptor()
262 HILOGE("Failed to remove file descriptor from epoll, %{public}s", errmsg); in RemoveFileDescriptor()
/base/hiviewdfx/hiview/plugins/sysevent_source/
H A Devent_server.cpp24 #include <sys/epoll.h>
/base/msdp/device_status/test/unittest/libs/src/
H A Ddevice_status_mock_test.cpp20 #include <sys/epoll.h>

Completed in 11 milliseconds

12