19 Aug 17:42
boost.asio async_write/read_until guarantee
From: Daniel Mierswa <impulze <at> impulze.org>
Subject: boost.asio async_write/read_until guarantee
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-08-19 15:45:39 GMT
Subject: boost.asio async_write/read_until guarantee
Newsgroups: gmane.comp.lib.boost.user
Date: 2008-08-19 15:45:39 GMT
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
RSS Feed