Possible Duplicate:
Boost.Asio thread safety
Is
boost::asio::ip::tcp::socket
thread safe?
I mean, can I call the methods of a shared tcp::socket (socket.connect(), read_some(), close()) from different threads without worrying about race condition issues?
As of Boost 1.52, it is not thread safe.
This is documented in the “Thread Safety” section in the documentation:
Thread Safety
Distinct objects: Safe.
Shared objects: Unsafe.