$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [asio] posting a function to an io_service object
From: Igor R (boost.lists_at_[hidden])
Date: 2009-12-28 10:57:58
> 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?