MCPcopy Create free account
hub / github.com/F-Stack/f-stack / KqueueDel

Method KqueueDel

adapter/micro_thread/kqueue_proxy.cpp:150–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150bool KqueueProxy::KqueueDel(KqObjList& obj_list)
151{
152 bool ret = true;
153
154 KqueuerObj *kqobj = NULL;
155 TAILQ_FOREACH(kqobj, &obj_list, _entry)
156 {
157 if (!KqueueDelObj(kqobj)) // failed also need continue, be sure ref count ok
158 {
159 MTLOG_ERROR("epobj del failed, fd: %d", kqobj->GetOsfd());
160 kqueue_assert(0);
161 ret = false;
162 }
163 }
164
165 return ret;
166}
167
168bool KqueueProxy::KqueueCtrlAdd(int fd, int events)
169{

Callers 1

KqueueScheduleMethod · 0.80

Calls 1

GetOsfdMethod · 0.80

Tested by

no test coverage detected