5 Dec
2007
5 Dec
'07
6:38 p.m.
"Nikita Bige"
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