MCPcopy Create free account
hub / github.com/Kitware/CMake / write_req_cb

Function write_req_cb

Source/cmUVHandlePtr.cxx:324–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322};
323
324void 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
336int uv_write(uv_stream_t* handle, uv_buf_t const bufs[], unsigned int nbufs,

Callers

nothing calls this directly

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…