| 167 | } |
| 168 | |
| 169 | int |
| 170 | MC::die() |
| 171 | { |
| 172 | if (pending_action && pending_action != ACTION_RESULT_DONE) { |
| 173 | pending_action->cancel(); |
| 174 | } |
| 175 | if (nvc) { |
| 176 | nvc->do_io_close(1); // abort |
| 177 | } |
| 178 | if (crvc) { |
| 179 | crvc->do_io_close(1); // abort |
| 180 | } |
| 181 | if (cwvc) { |
| 182 | cwvc->do_io_close(1); // abort |
| 183 | } |
| 184 | if (rbuf) { |
| 185 | free_MIOBuffer(rbuf); |
| 186 | } |
| 187 | if (wbuf) { |
| 188 | free_MIOBuffer(wbuf); |
| 189 | } |
| 190 | if (cbuf) { |
| 191 | free_MIOBuffer(cbuf); |
| 192 | } |
| 193 | |
| 194 | ats_free(tbuf); |
| 195 | |
| 196 | mutex = NULL; |
| 197 | theMCAllocator.free(this); |
| 198 | return EVENT_DONE; |
| 199 | } |
| 200 | |
| 201 | int |
| 202 | MC::unexpected_event() |
nothing calls this directly
no test coverage detected