Boost logo

Boost Users :

Subject: Re: [Boost-users] [ASIO] Thread safety of socket.write_some & socket.read_some
From: James12 (james791d_at_[hidden])
Date: 2008-11-04 09:29:28


Igor R wrote:
>
>>* Synchronous read, write, accept and connect operations are now
>>thread safe (meaning that it is now permitted to perform concurrent
>>synchronous operations on an individual socket, if supported by the
>>OS).

That's great news. The only unsolved problem now is how to safely stop the
synchronous read operation from another thread when I want to close the
socket since close() or shutdown() do not seem to be thread safe yet (and as
far as I know, cancel() can't be used on Windows XP).

Thanks,
James

-- 
View this message in context: http://www.nabble.com/-ASIO--Thread-safety-of-socket.write_some---socket.read_some-tp20222810p20323330.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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