MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / init

Method init

net/kernel_socket.cpp:826–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824 EventLoop* loop = nullptr;
825
826 int init() {
827 epfd = epoll_create(1);
828 loop = new_event_loop({this, &ETPoller::waiter},
829 {this, &ETPoller::notify});
830 loop->async_run();
831 return epfd;
832 }
833
834 int fini() {
835 loop->stop();

Callers 8

et_poller_initFunction · 0.45
new_tcp_socket_serverFunction · 0.45
new_uds_serverFunction · 0.45
new_zerocopy_tcp_serverFunction · 0.45
new_iouring_tcp_serverFunction · 0.45
new_et_tcp_socket_serverFunction · 0.45
new_smc_socket_serverFunction · 0.45

Calls 2

new_event_loopFunction · 0.85
async_runMethod · 0.80

Tested by

no test coverage detected