在boost :: ASIO扩展异步文件IO到Mac OS X [英] Extend asynchronous file io in boost::asio to Mac OS X

查看:302
本文介绍了在boost :: ASIO扩展异步文件IO到Mac OS X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升压:: ASIO包中包含使用IO完成端口在Windows中做异步文件IO类。据我了解,有一个中包含的ASIO包其他平台的异步文件IO的支持。

The boost::asio package contains classes for doing asynchronous file io in Windows using IO completion ports. To my understanding, there is no support for asynchronous file io for other platforms included in the asio package.

我想知道需要以异步文件IO支持ASIO延长至少Mac OS X的工作要做,但也在一定程度上Linux的东西。我在将需要对事物的ASIO方做了什么最感兴趣,但因为我不是有经验的与Mac OS X编程我不介意在哪里可以找到如何做异步文件IO的更多信息指针的Mac OS X以及 - ?是PBReadForkAsync什么,我应该看

I am wondering what would need to be done in order to extend asio with asynchronous file io support for at least Mac OS X, but also to some extent Linux. I am mostly interested in what would need to be done on the asio side of things, but since I am not that experienced with Mac OS X programming I don't mind pointers on where to find more information on how to do asynchronous file io in Mac OS X as well - is PBReadForkAsync what I should be looking at?

更新:
我终于得到周围尝试使用的aio_read /则aio_write Mac OS X上建立异步文件IO(外的boost :: ASIO),但我无法得到我需要的(见的How获取用户数据,在Mac OS X AIO信号处理)。

Update: I've finally gotten around to attempt to build asynchronous file io (outside boost::asio) on Mac OS X using aio_read/aio_write, however I am unable to get the callback data I need (see How to get user data for aio signal handler in Mac OS X).

推荐答案

根据这一页,提振:: ASIO的作品在OS X上,有一个小的约束:的http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/overview/implementation.html

According to this page, boost::asio works on OS X, with one minor constraint: http://www.boost.org/doc/libs/1_37_0/doc/html/boost_asio/overview/implementation.html

这篇关于在boost :: ASIO扩展异步文件IO到Mac OS X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆