
7 Apr
2008
7 Apr
'08
9:40 a.m.
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. Sebastian Redl