Boost C++ 库

…世界上最受推崇、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

windows::basic_overlapped_handle::release (2 个重载中的 1 个) - Boost C++ 函数库
PrevUpHomeNext

释放底层本机 handle 的所有权。

native_handle_type release();

此函数将导致所有未完成的异步操作立即完成,并且已取消操作的处理程序将接收 boost::asio::error::operation_aborted 错误。然后,原生句柄的所有权将转移给调用者。

异常

boost::system::system_error

失败时抛出。

备注

此函数在 Windows 8.1 之前的 Windows 版本上不受支持,并且在这些平台上会以 boost::asio::error::operation_not_supported 失败。


PrevUpHomeNext