Menu
  • HOME
  • TAGS

What does boost::asio::spawn do?

c++,boost,boost-asio,boost-coroutine

In short: When spawn() is invoked, Boost.Asio performs some setup work and then will use a strand to dispatch() an internal handler that creates a coroutine using the user provided function as an entry point. Under certain conditions, the internal handler can be will be invoked within the call to...

How do stackless coroutines differ from stackful coroutines?

c++,concurrency,coroutine,boost-coroutine

First, thank you for taking a look at CO2 :) The Boost.Coroutine doc describes the advantage of stackful coroutine well: stackfulness In contrast to a stackless coroutine a stackful coroutine can be suspended from within a nested stackframe. Execution resumes at exactly the same point in the code where it...