Boost logo

Boost Users :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2007-12-05 13:38:49


"Nikita Bige" <big-nikita_at_[hidden]> wrote

> Can you explain
> Is it posibly to use timeouts if multiple threads are calling
> io_service::run() on the single io_service object?

I think this is much simpler... I start an asynchronous read giving it a
function object to call when it is done. However, if it is not done in
let's say 1 sec, I want to _cancel this read_ and take an alternative route.
I don't want the read function object to be called if the read completes
_after_ the timeout has been processed.

Isn't this a common scenario?

Thanks,
Arkadiy


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