On Wed, Jun 26, 2013 at 9:39 AM, Arash Partow
On 26/06/2013 7:11 PM, Bjorn Reese wrote:
Could you provide some guidance about the pros and cons of Context versus Fiber versus Coroutine so that we are in a better position to select the appropriate module?
Not guidance per se but here's a nice example:
https://github.com/chriskohlhoff/asio/blob/master/asio/src/examples/cpp11/sp...
Looks like that spawns a couple of strands of lambdas. The same thing could be done with member functions? We don't have an echo server, but would be reading event messages from a client in one strand, then adapting some sort of subscriber/channel pub/sub push/pull methodology to send event messages to the client. I gather with the asio io_service strand approach, that is running a couple of threads concurrently? I am noticing the steady timer shared between both strands, for instance. Thanks!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users