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

Method AttachEvents

adapter/micro_thread/kqueue_proxy.h:190–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188 };
189
190 void AttachEvents(int event) {
191 if (event & KQ_EVENT_READ) {
192 _rd_ref++;
193 }
194 if (event & KQ_EVENT_WRITE){
195 _wr_ref++;
196 }
197 };
198 void DetachEvents(int event) {
199 if (event & KQ_EVENT_READ) {
200 if (_rd_ref > 0) {

Callers 1

KqueueCtrlAddMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected