| 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) { |
nothing calls this directly
no test coverage detected