18 #ifndef LUNCHBOX_FUTUREFUNCTION_H 
   19 #define LUNCHBOX_FUTUREFUNCTION_H 
   21 #include <lunchbox/future.h>  
   22 #include <boost/function/function0.hpp> 
   30     bool wait( 
const uint32_t ) final { 
return true; }
 
   31     bool isReady() const final { 
return true; }
 
   41     typedef boost::function< T() > 
Func; 
 
   48     T 
wait( 
const uint32_t ) final
 
   58     bool isReady() const final { 
return func_.empty(); }
 
   65 #endif //LUNCHBOX_FUTURE_H 
A Future implementation using a boost::function for fulfilment. 
 
boost::function< T() > Func
The fulfilling function. 
 
T wait(const uint32_t) final
Wait for the promise to be fullfilled. 
 
bool isReady() const final
 
A boolean future always returning true. 
 
bool isReady() const final
 
Base class to implement the wait method fulfilling the future. 
 
bool wait(const uint32_t) final
Wait for the promise to be fullfilled.