Boost logo

Boost Users :

From: Daniel Mierswa (impulze_at_[hidden])
Date: 2008-08-19 11:45:39


Hi,
if i have a threadpool running an io_service and a read_until is invoked
before async_write. Now i wonder what would happen if the string is
written to the socket, will the write handler be called before the
read_handler or is it undefined in which order they will be invoked? If
it's not guaranteed can anyone think of a solution to create such a
guarantee in my own program? (I posted the same question on the asio
mailinglist but i assume there's more activity here)
Thanks in advance

-- 
Mierswa, Daniel
If you still don't like it, that's ok: that's why I'm boss. I simply 
know better than you do.
               --- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22

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