예제 #1
0
void then_bulk_test_void(int value, hpx::shared_future<void> f,
    hpx::thread::id tid, int passed_through) //-V813
{
    HPX_ASSERT(f.is_ready());   // make sure, future is ready

    f.get();                    // propagate exceptions

    HPX_TEST(tid == hpx::this_thread::get_id());
    HPX_TEST_EQ(passed_through, 42);
}
예제 #2
0
boost::int32_t increment_with_future(hpx::shared_future<boost::int32_t> fi)
{
    return fi.get() + 1;
}
예제 #3
0
void increment_with_future(hpx::shared_future<std::int32_t> fi)
{
    accumulator += fi.get();
    result_cv.notify_one();
}
예제 #4
0
void increment_with_future(hpx::id_type const& there,
    hpx::shared_future<boost::int32_t> fi)
{
    accumulator += fi.get();
    hpx::apply(receive_result_action(), there, accumulator.load());
}
예제 #5
0
	delayed_action(hpx::shared_future<delayed_action> fut) {
		*this = fut.get();
	}