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

Method reset

io/kqueue.cpp:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 int reset() override {
63 LOG_INFO("Reset event engine: kqueue");
64 _kq = -1; // kqueue fd is not inherited from the parent process
65 _inflight_events.clear(); // reset members
66 _n = 0;
67 return init(); // re-init
68 }
69
70 ~KQueue() override {
71 LOG_INFO("Finish event engine: kqueue");

Callers 1

reset_all_handleFunction · 0.45

Calls 2

initFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected