$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [asio] Using io_service for synchronous tcp accept + custom tasks
From: Bjorn Reese (breese_at_[hidden])
Date: 2015-02-04 06:51:45
On 02/04/2015 08:38 AM, Aaron Levy wrote:
> Consider an alternative to my example while still using sync I/O.
You may consider using coroutines instead (see the spawn examples.)
This way you can have one coroutine per request, served by a fixed
number of threads. Whenever the coroutine has to wait for more I/O
it will yield the thread so that it can be used by other coroutines.