18 May
2013
18 May
'13
8:57 p.m.
Anthony Foiani
I want to set up an io_service-per-thread, with each io_service having a deadline_timer to handle the heartbeat. The only other complicated bit is selecting an io_service to handle an incoming request.
Then there's this solution (Andrés's answer): http://stackoverflow.com/questions/12166513/boostasio-thread-pools-and-threa... (or: http://preview.tinyurl.com/alot5eo ) If I replace his run_one with poll_one, I think that covers what I'm looking for. I think it solves the scalability concern, because threads that are currently working on other tasks will not be woken by the central pool's notify. Just in case someone else finds this in the archives... Best, Anthony Foiani