Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.asio] Is it safe to call write() and async_read at the same time?
From: Igor R (boost.lists_at_[hidden])
Date: 2011-05-12 14:06:54


> So clearly, the "Shared objects: Unsafe" does not tell the whole
> story. I also have yet to see an example where async_read/write's that
> could be could called simultaneously are surrounded by mutexes. It
> would be really nice to get a clear answer on whether these methods
> are thread safe or not.

I absolutely agree. But as long as we don't have such answers, imho,
it's worth using safer techniques to prevent unexpected behavior.


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