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

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at