Boost logo

Boost Users :

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

> However, I'm not sure whether to choose of poll_one or run_one in this case.
> I.e., I'm looking for the cheapest "do some other stuff" of asio's io_service.

run_once() is ok here, but anyway your loop will *block* any further
iterations until result_available == true, won't it? If so, why not
just use synchronous asio functions? Actually, they are already
implemented in the very similar way to what you're trying to do.

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