Exemplo n.º 1
0
        /// Query the current value of the accumulator.
        ///
        /// \note This function is fully synchronous.
        double query_sync()
        {
            HPX_ASSERT(this->get_id());

            return query_async().get();
        }
Exemplo n.º 2
0
 /// Query the current value of the accumulator.
 ///
 /// \note This function is fully synchronous.
 static boost::uint64_t query_sync(hpx::naming::id_type const& gid)
 {
     // The following get yields control while the action is executed.
     return query_async(gid).get();
 }
Exemplo n.º 3
0
        /// Query the current value of the accumulator.
        ///
        /// \note This function is fully synchronous.
        argument_type query_sync()
        {
            HPX_ASSERT(this->get_id());

            return query_async().get();
        }