|
Boost : |
Subject: Re: [boost] [asio] Bug: Handlers execute on the wrong strand (Gavin Lambert).
From: Marat Abrarov (abrarov_at_[hidden])
Date: 2013-10-24 05:27:58
> I actually ended up abandoning Asio and rolling my own threadqueue (I
> didn't want any of the socket-related stuff so this wasn't as big a job
> as it sounds). Mine isn't fully-baked yet (and it's Windows-only for
> the moment) and I'm not sure I'd want to show it off either, but on the
> upside most of the guts are entirely lock-free (though not wait-free,
> since it's based on Boost.LockFree's queue).
Asio at Windows uses IOCP (default settings, using asio::io_service for task
scheduling) and that is the (theoretical) reason of better thread scheduling
for the Asio-based thread pool. Sometimes it's really visible.
Regards,
Marat Abrarov.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk