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

Method KqueueCtlAdd

adapter/micro_thread/mt_notify.h:185–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 };
184
185 virtual int KqueueCtlAdd(void* args) {
186 if (!_real_ntfy) {
187 return -1;
188 }
189
190 int events = this->GetEvents();
191 if (!(events & KQ_EVENT_WRITE)) {
192 return 0;
193 }
194
195 if (_real_ntfy->KqueueCtlAdd(args) < 0) {
196 return -2;
197 }
198
199 _real_ntfy->InsertWriteWait(this);
200 return 0;
201 };
202
203 virtual int KqueueCtlDel(void* args) {
204 if (!_real_ntfy) {

Callers

nothing calls this directly

Calls 3

GetEventsMethod · 0.80
InsertWriteWaitMethod · 0.80
KqueueCtlAddMethod · 0.45

Tested by

no test coverage detected