18 #ifndef LUNCHBOX_FUTUREFUNCTION_H
19 #define LUNCHBOX_FUTUREFUNCTION_H
21 #include <lunchbox/future.h>
22 #include <boost/function/function0.hpp>
33 typedef boost::function< T() >
Func;
40 T
wait(
const uint32_t ) final
50 bool isReady() const final {
return func_.empty(); }
57 #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
Base class to implement the wait method fulfilling the future.