From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2007-05-25 10:01:03
On Wed, 23 May 2007 22:18:53 +0700,
> If I do something like this can I be sure that async requests will run
> boost::asio::io_service io_service;
> client c(io_service, argv, argv);
> client c1(io_service, argv, argv);
> boost::thread tr1(boost::bind(&boost::asio::io_service::run,
> The client class is a class from boost.asio example.
What do you mean by "async requests"? With two threads calling
io_service::run(), your completion handlers will be able to run
concurrently. The actual asynchronous operations would run concurrently
even if you only had one thread calling io_service::run().
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk