$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [ASIO] Thread safety of socket.write_some & socket.read_some
From: Igor R (boost.lists_at_[hidden])
Date: 2008-10-29 10:12:32
> My question is that is it safe to call write_some and read_some from
> different threads without synchronization.
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/socket.html
"Thread Safety
Distinct objects: Safe.
Shared objects: Unsafe. "