Christi258
2017-02-08 09:41:37 UTC
This question has been asked many times, but I'm still not satisfied with the
answers.
I want to use a socket in full duplex:
1. asynchronously: with async_read, async_write (multiple threads running
io_service.run())
2. synchronously: with read and write in two distinct threads
I am pretty sure that 1. is thread safe using strands.
But I can find no information about 2.
Please refere to any official documents of boost.
--
View this message in context: http://boost.2283326.n4.nabble.com/Thread-safe-full-duplex-sockets-tp4691552.html
Sent from the Boost - Users mailing list archive at Nabble.com.
answers.
I want to use a socket in full duplex:
1. asynchronously: with async_read, async_write (multiple threads running
io_service.run())
2. synchronously: with read and write in two distinct threads
I am pretty sure that 1. is thread safe using strands.
But I can find no information about 2.
Please refere to any official documents of boost.
--
View this message in context: http://boost.2283326.n4.nabble.com/Thread-safe-full-duplex-sockets-tp4691552.html
Sent from the Boost - Users mailing list archive at Nabble.com.