Boost logo

Boost :

Subject: Re: [boost] ASIO Query
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-12-21 15:48:19

On Wed, Dec 21, 2011 at 9:21 PM, james_at_[hidden]
<james_at_[hidden]> wrote:
> Blocking - I've thought about this, but the MySQL C/C++ libraries unfortunately
> don't provide asynchronous queries.
> I'm thinking of moving database reads into a seperate thread(s). It would be
> nice if I can integrate this with the io_service, but I'm unsure how to do so.
> Is it possible to pass arbitrary work items to an io_service, in the same manner
> as async_read/write?

Does every request involve blocking calls? If so, I'd not go with a
'shared nothing' design.


Boost list run by bdawes at, gregod at, cpdaniel at, john at