Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove an extra async apply forwarding that is overloaded already #3196

Closed
wants to merge 1 commit into from

Conversation

biddisco
Copy link
Contributor

Fixes #3195

Proposed Changes

Remove an unwanted apply forwarding.

@hkaiser
Copy link
Member

hkaiser commented Feb 24, 2018

What is the rationale of this change? If the futures_factory was created with an executor, this executor should be used to schedule the task. If we applied this patch, then

 pool_executor exec{"foo"};
 auto f = async(exec, ...)

would schedule the task on the default pool instead of on the requested one.

@hkaiser
Copy link
Member

hkaiser commented Feb 24, 2018

As an alternative (to make things more consistent) we could either rewrite the implementation of async for thread-executors (like pool_executor, see https://github.com/STEllAR-GROUP/hpx/blob/master/hpx/parallel/executors/thread_execution.hpp#L47-L57) or we could change future_factory to always use an executor to schedule things, even if it was not created with one. The second however, would probably complicate things even further.

@msimberg msimberg removed this from the 1.1.0 milestone Mar 22, 2018
@biddisco
Copy link
Contributor Author

I am closing this issue because it turns out to be a red-herring. My work on #3241 was in effect calling some async overloads twice and after fixing that, I do not need this PR any more.

@biddisco biddisco closed this Apr 18, 2018
@biddisco biddisco deleted the fixing_3195 branch April 18, 2018 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants