|
Mercury Currency Engine
|
#include <thread>#include <memory>#include <boost/coroutine2/all.hpp>#include "function_utility.hpp"

Go to the source code of this file.
Classes | |
| struct | mce::coroutine |
Functions | |
| coroutine *& | mce::detail::tl_this_coroutine () |
| bool | mce::in_coroutine () |
| Returns true if executing in a coroutine, else false. | |
| coroutine * | mce::this_coroutine () |
| void | mce::yield () |
Wrapper coroutine object around boost coroutine base types
|
inline |
Return a pointer to the currently running coroutine object. If not running in a coroutine returns nullptr.
|
inline |
Yield out of the current coroutine. No effect if running in a raw thread.