YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
coro.hpp File Reference
#include <yaclib/config.hpp>
Include dependency graph for coro.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yaclib_std
 

Macros

#define YACLIB_TRANSFER(handle)
 
#define YACLIB_RESUME(handle)   return false
 
#define YACLIB_SUSPEND()   return true
 

Functions

constexpr yaclib_std::coroutine_handle yaclib_std::noop_coroutine () noexcept
 

Macro Definition Documentation

◆ YACLIB_RESUME

#define YACLIB_RESUME (   handle)    return false

Definition at line 57 of file coro.hpp.

◆ YACLIB_SUSPEND

#define YACLIB_SUSPEND ( )    return true

Definition at line 58 of file coro.hpp.

◆ YACLIB_TRANSFER

#define YACLIB_TRANSFER (   handle)
Value:
handle.resume(); \
return true

Definition at line 54 of file coro.hpp.