Boost logo

Boost Users :

Subject: Re: [Boost-users] [context] Release date?
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-07-14 09:41:25


Am 14.07.2012 13:06, schrieb Nat Linden:
> On Sat, Jul 14, 2012 at 6:16 AM, Szymon Gatner <szymon.gatner_at_[hidden]> wrote:
>
>> boost.context has been accepted quite some time ago, is there any eta
>> on when it is going be officially part of boost?
>>
>> asio (for async task running) + context (as a coroutine/continuation)
>> == pure win
> Without disagreeing with the above, you might find that asio +
> coroutine is even more a win, as coroutine layers an application-level
> API on top of context:
> http://olk.bplaced.net/boost-coroutine.zip
documentation (needs some enhancements, I know) at
http://olk.bplaced.net/boost/libs/coroutine/doc/html/

As I worte in a previous posting - the example section contains code
which integrates a coroutine inside a streambuf so that the stream using
this streambuf can be used as usual (without blocking the application)

inbuf ib( socket);
istream is( & ib);
std::string line;
do {
     std::getline( line);
     ...
} while ( line != "exit");

regards,
Oliver


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net