25 #ifndef __I6ENGINE_UTILS_FUTURE_H__ 
   26 #define __I6ENGINE_UTILS_FUTURE_H__ 
   29 #include <condition_variable> 
   46                 Future() : _value(), _finished(false), _lockValue(), _valueCondVar() {
 
   55                                 std::unique_lock<std::mutex> ul(_lockValue);
 
   56                                 _valueCondVar.wait(ul);
 
   67                         std::unique_lock<std::mutex> ul(_lockValue);
 
   68                         _valueCondVar.notify_one();
 
   73                 std::atomic<bool> _finished;
 
   74                 mutable std::mutex _lockValue;
 
   75                 mutable std::condition_variable _valueCondVar;
 
void push(T value)
sets value for this variable, notifies waiting get if existing 
 
class for returning a result before it is ready