
7 Apr
2008
7 Apr
'08
11:18 a.m.
On Mon, 07 Apr 2008 11:40:48 +0200, Sebastian Redl <sebastian.redl@getdesigned.at> wrote:
Boris wrote:
I ask as I was trying to extend Boost.Asio and add support for C++ standard streams on the weekend. I came to the conclusion that this is impossible (as calls to C++ standard streams block and there is no way to interrupt a blocking call, at least not in a portable way).
The only way to simulate asynchronous I/O using blocking calls is to use a separate thread for every I/O object.
This doesn't work either as you can't interrupt the blocking call if you want to close the stream. Boris