MCPcopy Create free account
hub / github.com/boostorg/asio / close

Function close

include/boost/asio/basic_writable_pipe.hpp:340–345  ·  view source on GitHub ↗

Close the pipe. * This function is used to close the pipe. Any asynchronous write operations * will be cancelled immediately, and will complete with the * boost::asio::error::operation_aborted error. * * @throws boost::system::system_error Thrown on failure. */

Source from the content-addressed store, hash-verified

338 * @throws boost::system::system_error Thrown on failure.
339 */
340 void close()
341 {
342 boost::system::error_code ec;
343 impl_.get_service().close(impl_.get_implementation(), ec);
344 boost::asio::detail::throw_error(ec, "close");
345 }
346
347 /// Close the pipe.
348 /**

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected