Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
boost::fibers::asio::detail::yield_handler< T > Class Template Reference

#include <yield.hpp>

Inheritance diagram for boost::fibers::asio::detail::yield_handler< T >:
Collaboration diagram for boost::fibers::asio::detail::yield_handler< T >:

Public Member Functions

 yield_handler (yield_t const &y)
 
void operator() (T t)
 
void operator() (boost::system::error_code const &ec, T t)
 
- Public Member Functions inherited from boost::fibers::asio::detail::yield_handler_base
 yield_handler_base (yield_t const &y)
 
void operator() (boost::system::error_code const &ec)
 

Public Attributes

Tvalue_ { nullptr }
 
- Public Attributes inherited from boost::fibers::asio::detail::yield_handler_base
boost::fibers::context * ctx_
 
yield_t yt_
 
yield_completionycomp_ { nullptr }
 

Detailed Description

template<typename T>
class boost::fibers::asio::detail::yield_handler< T >

Definition at line 114 of file yield.hpp.

Constructor & Destructor Documentation

◆ yield_handler()

template<typename T >
boost::fibers::asio::detail::yield_handler< T >::yield_handler ( yield_t const & y)
inlineexplicit

Definition at line 117 of file yield.hpp.

117 :
119 }
uint64_t y
Definition sha3.cpp:34

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
void boost::fibers::asio::detail::yield_handler< T >::operator() ( boost::system::error_code const & ec,
T t )
inline

Definition at line 128 of file yield.hpp.

128 {
129 BOOST_ASSERT_MSG( value_,
130 "Must inject value ptr "
131 "before caling yield_handler<T>::operator()()");
132 // move the value to async_result<> instance BEFORE waking up a
133 // suspended fiber
134 * value_ = std::move( t);
135 // forward the call to base-class completion handler
137 }
void operator()(boost::system::error_code const &ec)
Definition yield.hpp:73
Here is the call graph for this function:

◆ operator()() [2/2]

template<typename T >
void boost::fibers::asio::detail::yield_handler< T >::operator() ( T t)
inline

Definition at line 122 of file yield.hpp.

122 {
123 // just like callback passing success error_code
124 (*this)( boost::system::error_code(), std::move(t) );
125 }

Member Data Documentation

◆ value_

template<typename T >
T* boost::fibers::asio::detail::yield_handler< T >::value_ { nullptr }

Definition at line 142 of file yield.hpp.

142{ nullptr };

The documentation for this class was generated from the following file: