
29 Oct
2008
29 Oct
'08
2:36 p.m.
Igor R wrote:
Accessing the same socket object from different threads is unsafe:
http://www.boost.org/doc/libs/1_36_0/doc/html/boost_asio/reference/ip__tcp/s... "Thread Safety Distinct objects: Safe. Shared objects: Unsafe. "
Hi Igor and thanks for your reply. I am sorry for not reading the documentation well enough :-) Does this mean that I can still use the socket object from different threads if I use some kind of locking method to make sure that only one thread at a time uses the socket? Thanks, James -- View this message in context: http://www.nabble.com/-ASIO--Thread-safety-of-socket.write_some---socket.rea... Sent from the Boost - Users mailing list archive at Nabble.com.