| 322 | }; |
| 323 | |
| 324 | void write_req_cb(uv_write_t* req, int status) |
| 325 | { |
| 326 | // Ownership has been transferred from the event loop. |
| 327 | std::unique_ptr<write_req> self(static_cast<write_req*>(req)); |
| 328 | |
| 329 | // Notify the original uv_write caller if it is still interested. |
| 330 | if (auto cb = self->cb_.lock()) { |
| 331 | (*cb)(status); |
| 332 | } |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | int uv_write(uv_stream_t* handle, uv_buf_t const bufs[], unsigned int nbufs, |
nothing calls this directly
no test coverage detected
searching dependent graphs…