| 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) { |