Skip to content

Commit

Permalink
Accommodate removal of transfer_just
Browse files Browse the repository at this point in the history
`transfer_just` was removed in the 10th revision of P2300, this
commit replaces its usage in the `explicit_scheduler_executor`.
  • Loading branch information
zhekemist committed Aug 28, 2024
1 parent 0344d00 commit e35074d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,18 @@ namespace hpx::execution::experimental {
return HPX_MOVE(result_vector);
};

#if defined(HPX_HAVE_STDEXEC)
return just(HPX_MOVE(result_vector), shape, HPX_FORWARD(F, f),
HPX_FORWARD(Ts, ts)...) |
continue_on(exec.sched_) |
bulk(shape_size, HPX_MOVE(f_wrapper)) |
then(HPX_MOVE(get_result));
#else
return transfer_just(exec.sched_, HPX_MOVE(result_vector),
shape, HPX_FORWARD(F, f), HPX_FORWARD(Ts, ts)...) |
bulk(shape_size, HPX_MOVE(f_wrapper)) |
then(HPX_MOVE(get_result));
#endif
}
}

Expand Down

0 comments on commit e35074d

Please sign in to comment.