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

Add support for minimal thread local data #2375

Merged
merged 1 commit into from Nov 4, 2016
Merged

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Oct 27, 2016

If HPX_WITH_THREAD_LOCAL_DATA is not defined, we now support storing a single size_t as thread local data

This also addresses part of #2371

@dhollman this should enable what you need by default and with reasonably small overheads

- if HPX_WITH_THREAD_LOCAL_DATA is not defined, we now support storing a single size_t as thread local data
@hkaiser hkaiser added this to the 1.0.0 milestone Oct 27, 2016
@hkaiser hkaiser mentioned this pull request Oct 27, 2016
3 tasks
@hkaiser hkaiser changed the title Add support for minimal thread local data/1d_stencil.xlsx Add support for minimal thread local data Oct 27, 2016
@dhollman
Copy link

@hkaiser Shouldn't this extension also be made to work with hpx::this_thread::get/set_thread_data() ?

@hkaiser
Copy link
Member Author

hkaiser commented Oct 27, 2016

Shouldn't this extension also be made to work with hpx::this_thread::get/set_thread_data()

@dhollman These functions should work as well (see

HPX_API_EXPORT std::size_t get_thread_data();
HPX_API_EXPORT std::size_t set_thread_data(std::size_t);
)

@hkaiser hkaiser merged commit d4efecd into master Nov 4, 2016
@hkaiser hkaiser deleted the minimal_thread_local_data branch November 4, 2016 14: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