coroutine.h File Reference
#include "ttg/config.h"
#include <algorithm>
#include <array>

Classes

struct  ttg::event
 represents a generic one-time event More...
 
struct  ttg::resumable_task
 task that can be resumed after some events occur More...
 
struct  ttg::resumable_task_state
 
struct  ttg::resumable_task_events< N >
 

Namespaces

 ttg
 top-level TTG namespace contains runtime-neutral functionality
 
 ttg::device
 
 ttg::device::detail
 

Typedefs

using ttg::suspend_always = TTG_CXX_COROUTINE_NAMESPACE::suspend_always
 
using ttg::suspend_never = TTG_CXX_COROUTINE_NAMESPACE::suspend_never
 
template<typename Promise >
using ttg::coroutine_handle = TTG_CXX_COROUTINE_NAMESPACE::coroutine_handle< Promise >
 

Enumerations

enum class  ttg::TaskCoroutineID { ttg::Invalid , ttg::ResumableTask , ttg::DeviceTask }
 

Functions

template<typename... Events>
 ttg::resumable_task_events (Events &&...) -> resumable_task_events< sizeof...(Events)>