Esempio n. 1
0
            void on_future_ready_(Index i, threads::thread_id_type const& id,
                boost::mpl::true_)
            {
                if (lazy_values_[i].has_value()) {
                    if (success_counter_)
                        ++*success_counter_;
                    // invoke callback function
                    f_(i);
                }

                // keep track of ready futures
                on_future_ready_(id);
            }
Esempio n. 2
0
 void on_future_ready(std::size_t i, threads::thread_id_type const& id)
 {
     on_future_ready_(i, id, boost::is_same<void, T>());
 }
Esempio n. 3
0
 void on_future_ready(std::size_t i, threads::thread_id_type const& id)
 {
     on_future_ready_(i, id,
         boost::is_void<typename traits::future_traits<Future>::type>());
 }