| 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; }; |
no outgoing calls
no test coverage detected