Boost logo

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:
"Thread Safety
Distinct objects: Safe.
Shared objects: Unsafe. "

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at