Public Member Functions

hamcast::util::future< T > Class Template Reference

Describes a simple synchronous future value. More...

#include <future.hpp>

List of all members.

Public Member Functions

T & get ()
void set (const T &val)

Detailed Description

template<typename T>
class hamcast::util::future< T >

Describes a simple synchronous future value.


Member Function Documentation

template<typename T >
T& hamcast::util::future< T >::get (  ) 

Read the produced value.

Returns:
A reference to the produced value.
Warning:
This function blocks until set was called.
template<typename T >
void hamcast::util::future< T >::set ( const T &  val  ) 

Set the value to val and wakeup waiting consumer thread.

Parameters:
val The produced value.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator