Skip to content

work item variant execution should support arbitrary return types #23

@sithhell

Description

@sithhell

Currently, the return type of a work_item variant execute function supports the following return types:

  • hpx::future<T>
  • allscale::treeture<T>
  • hpx::unused_type

The last return type is important for performance optimizations. The process variants seldomly spawn other work items asynchronously, as such, it is beneficial for performance reasons, to avoid the allscale::make_ready_treeture(...) return in such cases. Even a ready treeture is associated with some overheads.

It should be possible, to support arbitrary, non treeture return types, like void instead of hpx::util::unused_type or int.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions