Boost logo

Boost :

Subject: [boost] [asio] Mixing of sync and async calls
From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2009-09-17 03:11:07


Is it legal to mix async and sync function calls?
(I was not able to find the answer in the doc.)

E.g.

socket.async_read_some(buf);
socket.write_some(otherbuf);

Also when in a blocking sync call, will it be
possible to "cancel" it from another thread,
e.g. by posting to the io_service which will
invoke a close on the socket?

Thank you in advance.

-- 
_________________________________________
  _  _  | Roland Schwarz aka. speedsnail
 |_)(_  | sip:speedsnail_at_[hidden]
 | \__) | mailto:roland.schwarz_at_[hidden]
________| http://www.blackspace.at

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk