|
Boost Users : |
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. "
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net