| Home | Libraries | People | FAQ | More

##### basic_writable_pipe::release (1 of 2 overloads)

Release ownership of the underlying native pipe.

    native_handle_type release();

This function causes all outstanding asynchronous write operations to finish immediately, and the handlers for cancelled operations will be passed the `boost::asio::error::operation_aborted` error. Ownership of the native pipe is then transferred to the caller.

###### Exceptions

boost::system::system_error

  Thrown on failure.

###### Remarks

This function is unsupported on Windows versions prior to Windows 8.1, and will fail with `boost::asio::error::operation_not_supported` on these platforms.