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

Variadic when and wait functions #1349

Merged
merged 9 commits into from Jan 11, 2015
Merged

Variadic when and wait functions #1349

merged 9 commits into from Jan 11, 2015

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Jan 11, 2015

This patch proposes to change the implementation of all wait_xxx and when_xxx free functions to use variadics. This introduces API breaking changes for some of those, the sequence of the parameter have been changed to ensure that all variadic arguments come last.

This patch also adds the missing documentation for when_each and wait_each.

All tests pass: http://hermione.cct.lsu.edu/builders/hpx_gcc_4_9_boost_1_56_debian_x86_64_debug/builds/217


result_type lazy_values_(
BOOST_PP_ENUM(N, HPX_WAIT_SOME_GET_SHARED_STATE, _));
result_type lazy_values_(lcos::detail::get_shared_state(ts)...);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this cause a pattern-matching ICE?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting - it should. Apparently this is not tested anywhere.

@K-ballo
Copy link
Member

K-ballo commented Jan 11, 2015

LGTM

hkaiser added a commit that referenced this pull request Jan 11, 2015
@hkaiser hkaiser merged commit 566465c into master Jan 11, 2015
@hkaiser hkaiser deleted the variadic_when_wait branch January 11, 2015 01:56
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

2 participants