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

Ensure that using %osthread% during logging will not throw for non-hpx threads #2475

Merged
merged 1 commit into from Feb 3, 2017

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Feb 1, 2017

No description provided.

src/runtime.cpp Outdated
@@ -1208,6 +1208,20 @@ namespace hpx
return rt->get_thread_manager().get_worker_thread_num();
Copy link
Member

Choose a reason for hiding this comment

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

can't we call get_worker_thread_num(hpx::throws); to avoid code duplication?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, good point. My rationale for the new function was to leave the API unchanged.

@hkaiser
Copy link
Member Author

hkaiser commented Feb 2, 2017

@sithhell Your comment has been addressed

@sithhell sithhell merged commit 87bc49e into master Feb 3, 2017
@sithhell sithhell deleted the fixing_logging branch February 3, 2017 06:40
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