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::reduce_rmi_handle< T, BinaryOperation > Class Template Reference

Handle to wait for values from reduce_rmi(). More...

Public Member Functions

 reduce_rmi_handle (BinaryOperation op, const size_type size)
 
get (void)
 
get (context &ctx)
 
bool valid (void) const
 
void wait (void) const
 
void wait (context &ctx) const
 
void set_value (storage_type *const p, void *const base, message_shared_ptr &m)
 
void set_value (T const &v)
 
void set_value (T &&v)
 
void set_owned (void) noexcept
 
bool is_owned (void) const noexcept
 
template<typename Function >
void async_then (Function &&f)
 

Public Types

using storage_type = typename packed_value_type::storage_type
 
using value_type = T
 

Protected Member Functions

bool valid_no_yield (void) const noexcept
 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, typename BinaryOperation>
class stapl::runtime::reduce_rmi_handle< T, BinaryOperation >

Handle to wait for values from reduce_rmi().

Template Parameters
TValue type.
BinaryOperationReduction operator type.

This is an aggregator that extends future_base so that it is possible to return a future from reduce_rmi().

See also
future

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