
3 May
2007
3 May
'07
11:05 p.m.
On Sun, 29 Apr 2007 13:56:12 -0700, "Jeff Garland" <jeff@crystalclearsoftware.com> said:
I'm not 100% sure, I haven't tried that feature of asio. My guess is that it's a little different in that there may be a relationship between the io requests posted in the thread and where the callbacks are processed....so you have to 'know in advance' how threads and processing map. That's different from a typical thread pool. Anyway, one of us will either need to try it or ask Chris :-)
Yep, Stjepan's correct. You can have a pool of threads calling io_service::run(), and all those threads are considered equivalent when it comes to invoking the completion handlers. I.e. the io_service will just pick any one of them to run the handler. Cheers, Chris