18 #ifndef LUNCHBOX_FUTUREFUNCTION_H    19 #define LUNCHBOX_FUTUREFUNCTION_H    21 #include <boost/function/function0.hpp>    22 #include <lunchbox/future.h>     34     typedef boost::function<T()> 
Func; 
    43     T 
wait(
const uint32_t) final
    53     bool isReady() const final { 
return func_.empty(); }
    58 #endif // LUNCHBOX_FUTURE_H A Future implementation using a boost::function for fulfilment. 
 
T wait(const uint32_t) final
Wait for the promise to be fullfilled. 
 
Base class to implement the wait method fulfilling the future. 
 
Abstraction layer and common utilities for multi-threaded programming. 
 
boost::function< T()> Func
The fulfilling function. 
 
bool isReady() const  final