Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Synchronous/Asynchronous pattern
From: Igor R (boost.lists_at_[hidden])
Date: 2009-03-10 05:46:08


> What is the best way to "emulate" synchronous behaviour with asio? The
> thread running this iteration should not block, but do other work (at the
> io_service?) until the requested results are received.

Probably, I misunderstood you, but aren't these 2 requirements
contradicting? If you wish synchronous processing of messages, then
each iteration in your loop should block and wait until the i/o is
done.


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