Subject: Re: [Boost-users] [asio] asynchronous reading/writing to the tcp stream
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-07-11 13:47:19


Am 11.07.2012 18:42, schrieb Ovanes Markarian:
> I know what coroutines, fibers or user space threads are... But using
> them I still need to do some additional impl, which I don't want. I
> first want to know if I can read/write to tcp::iostream from two
> different threads and if yes, than how should I do it best.
>
>
a brief look at basic_socket_iostream I think it is not thread-safe so
reading/writing from/to tcp::iostream should force race conditions