Boost logo

Boost Users :

Subject: [Boost-users] Boost ASIO cancelling jobs from another thread
From: Mark Christiaens (christim_at_[hidden])
Date: 2012-03-21 13:03:26


We are developing a client-server application using Boost ASIO for
asynchronous socket communication. We were wondering whether it is safe to
cancel a read on a socket by closing the socket from another thread
(without any additional synchronization)? What would be the preferred way
to cancel operations from different threads?

Thanks in advance,

Mark Christiaens
Amplidata



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