Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
spawn.hpp File Reference
#include <boost/asio/detail/config.hpp>
#include <boost/coroutine/all.hpp>
#include <boost/asio/detail/weak_ptr.hpp>
#include <boost/asio/detail/wrapped_handler.hpp>
#include <boost/asio/io_service.hpp>
#include <boost/asio/strand.hpp>
#include <boost/asio/detail/push_options.hpp>
#include <boost/asio/detail/pop_options.hpp>
#include <boost/asio/impl/spawn.hpp>
Include dependency graph for spawn.hpp:

Classes

class  boost::asio::basic_yield_context< Handler >
 Context object the represents the currently executing coroutine. More...
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::asio
 

Typedefs

typedef basic_yield_context
< detail::wrapped_handler
< io_service::strand, void(*)(),
detail::is_continuation_if_running > > 
boost::asio::yield_context
 

Functions

template<typename Handler , typename Function >
void boost::asio::spawn (BOOST_ASIO_MOVE_ARG(Handler) handler, BOOST_ASIO_MOVE_ARG(Function) function, const boost::coroutines::attributes &attributes=boost::coroutines::attributes())
 Start a new stackful coroutine, calling the specified handler when it completes. More...
 
template<typename Handler , typename Function >
void boost::asio::spawn (basic_yield_context< Handler > ctx, BOOST_ASIO_MOVE_ARG(Function) function, const boost::coroutines::attributes &attributes=boost::coroutines::attributes())
 Start a new stackful coroutine, inheriting the execution context of another. More...
 
template<typename Function >
void boost::asio::spawn (boost::asio::io_service::strand strand, BOOST_ASIO_MOVE_ARG(Function) function, const boost::coroutines::attributes &attributes=boost::coroutines::attributes())
 Start a new stackful coroutine that executes in the context of a strand. More...
 
template<typename Function >
void boost::asio::spawn (boost::asio::io_service &io_service, BOOST_ASIO_MOVE_ARG(Function) function, const boost::coroutines::attributes &attributes=boost::coroutines::attributes())
 Start a new stackful coroutine that executes on a given io_service. More...