|
libcopp 2.3.1
|
Functions | |
| LIBCOPP_COPP_API coroutine_context * | get_coroutine () LIBCOPP_MACRO_NOEXCEPT |
| get current coroutine | |
| template<typename Tc > | |
| LIBCOPP_COPP_API_HEAD_ONLY Tc * | get () |
| get current coroutine and try to convert type | |
| LIBCOPP_COPP_API int | yield (void **priv_data=nullptr) LIBCOPP_MACRO_NOEXCEPT |
| yield current coroutine | |
| LIBCOPP_COPP_API_HEAD_ONLY Tc * this_coroutine::get | ( | ) |
get current coroutine and try to convert type
Definition at line 194 of file coroutine_context.h.
References get_coroutine().
| LIBCOPP_COPP_API coroutine_context * this_coroutine::get_coroutine | ( | ) |
get current coroutine
Definition at line 468 of file coroutine_context.cpp.
References coroutine_context_base::check_flags(), coroutine_context_base::flag_type::EN_CFT_IS_FIBER, and detail::get_this_coroutine_context().
| LIBCOPP_COPP_API int this_coroutine::yield | ( | void ** | priv_data = nullptr | ) |
yield current coroutine
| priv_data | private data, if not nullptr, will get the value from start(priv_data) or resume(priv_data) |
Definition at line 478 of file coroutine_context.cpp.
References COPP_EC_NOT_RUNNING, get_coroutine(), detail::get_this_coroutine_context(), LIBCOPP_UTIL_LIKELY_CONDITION, and coroutine_context::yield().