Asio:
- Improved performance.
- Reduced compile times.
- Reduced the size of generated code.
- Extended the guarantee that background threads don't call user code to all asynchronous operations (#3923).
- Changed to use edge-triggered epoll on Linux.
- Changed to use
timerfdfor dispatching timers on Linux, when available. - Changed to use one-shot notifications with kqueue on Mac OS X and BSD platforms.
- Added a bitmask type
ip::resolver_query_base::flagsas per the TR2 proposal. This type prevents implicit conversion frominttoflags, allowing the compiler to catch cases where users incorrectly pass a numeric port number as the service name. - Added
#define NOMINMAXfor all Windows compilers. Users can defineBOOST_ASIO_NO_NOMINMAXto suppress this definition (#3901). - Fixed a bug where 0-byte asynchronous reads were incorrectly passing an
error::eofresult to the completion handler (#4023). - Changed the
io_control()member functions to always callioctlon the underlying descriptor when modifying blocking mode (#3307). - Changed the resolver implementation to longer require the typedefs
InternetProtocol::resolver_queryandInternetProtocol::resolver_iterator, as neither typedef is part of the documentedInternetProtocolrequirements. The corresponding typedefs in theip::tcp,ip::udpandip::icmpclasses have been deprecated. - Fixed out-of-band handling for reactors not based on
select(). - Added new
BOOST_ASIO_DISABLE_THREADSmacro that allows Asio's threading support to be independently disabled. - Minor documentation improvements.
Asio更新与改进
Asio更新包括提高性能、减少编译时间和生成代码大小。改进了背景线程的安全性,并针对不同操作系统进行了优化,如使用edge-triggered epoll和timerfd等。新增了宏定义来独立禁用线程支持。
866

被折叠的 条评论
为什么被折叠?



