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

Method DetachEvents

adapter/micro_thread/kqueue_proxy.h:198–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 }
197 };
198 void DetachEvents(int event) {
199 if (event & KQ_EVENT_READ) {
200 if (_rd_ref > 0) {
201 _rd_ref--;
202 } else {
203 _rd_ref = 0;
204 }
205 }
206 if (event & KQ_EVENT_WRITE){
207 if (_wr_ref > 0) {
208 _wr_ref--;
209 } else {
210 _wr_ref = 0;
211 }
212 }
213 };
214
215
216 int ReadRefCnt() { return _rd_ref; };

Callers 2

KqueueCtrlAddMethod · 0.80
KqueueCtrlDelRefMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected