Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
FutureSharedStateDetail Namespace Reference

Classes

class  Receiver
 Responsible for syncronization between the task and the receiving thread. More...
 
struct  SharedState
 The shared state between futures and packaged state. More...
 

Typedefs

template<typename T >
using ResultHolder = std::conditional_t< std::is_void_v< T >, std::nullopt_t, std::optional< T > >
 

Enumerations

enum class  Status { PENDING , STARTED , DONE , CANCELED }
 

Typedef Documentation

◆ ResultHolder

template<typename T >
using FutureSharedStateDetail::ResultHolder = typedef std::conditional_t<std::is_void_v<T>, std::nullopt_t, std::optional<T> >

Enumeration Type Documentation

◆ Status

Enumerator
PENDING 
STARTED 
DONE 
CANCELED