
28 Dec
2009
28 Dec
'09
3:57 p.m.
Using Boost.Asio, f() always gets called from the main thread:
You use io_service incorrectly, please see asio tutorial/examples.
while (ios1.poll() > 0) ; while (ios2.poll() > 0) ;
io_services are already running - in other threads - why do you poll() them here?