/home/runner/work/HiCR/HiCR/include/hicr/backends/boost/coroutine.hpp Source File
HiCR
|
coroutine.hpp
Go to the documentation of this file.
56 if (_hasFinished == true) HICR_THROW_RUNTIME("Attempting to resume a coroutine that has already finished");
57 if (_runningContext == true) HICR_THROW_RUNTIME("Attempting to resume a coroutine that is already running");
71 if (_hasFinished == true) HICR_THROW_RUNTIME("Attempting to suspend a coroutine that has already finished");
72 if (_runningContext == false) HICR_THROW_RUNTIME("Attempting to suspend a coroutine that is not running");
Definition coroutine.hpp:40
std::function< void(void *)> coroutineFc_t
Definition coroutine.hpp:49
__INLINE__ void start(const coroutineFc_t &fc, void *const arg)
Definition coroutine.hpp:89
__INLINE__ bool hasFinished()
Definition coroutine.hpp:123
Provides a failure model and corresponding exception classes.
Generated by