STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Protected Member Functions | Protected Attributes
stapl::runtime::ready_future< T > Class Template Referencefinal

future_base implementation for ready values. More...

Public Member Functions

 ready_future (T const &t)
 
 ready_future (T &&t)
 
bool valid (void) const final
 
void wait (void) const final
 
get (void) final
 
void set_owned (void) noexcept
 
bool is_owned (void) const noexcept
 
template<typename Function >
void async_then (Function &&f)
 

Public Types

using value_type = T
 

Protected Member Functions

bool valid_no_yield (void) const noexcept final
 Returns true if the result has been received.
 
void schedule_continuation (void)
 Schedules a continuation if async_then() was called.
 

Protected Attributes

std::mutex m_mtx
 

Detailed Description

template<typename T>
class stapl::runtime::ready_future< T >

future_base implementation for ready values.

Template Parameters
TObject type.
See also
future

The documentation for this class was generated from the following file: