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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove thread_pool.cpp, arg_pack.cpp et al #3117

Merged
merged 4 commits into from
Mar 31, 2022
Merged

Remove thread_pool.cpp, arg_pack.cpp et al #3117

merged 4 commits into from
Mar 31, 2022

Conversation

pinkwah
Copy link
Contributor

@pinkwah pinkwah commented Mar 17, 2022

Remove the final remnants of thread_pool and arg_pack

RIP you will be missed 馃槩

Resolves: #2774
Resolves: #3106

@pinkwah pinkwah self-assigned this Mar 17, 2022
@pinkwah pinkwah changed the title Remove thread_pool.cpp Remove thread_pool.cpp, arg_pack.cpp et al Mar 17, 2022
@oyvindeide
Copy link
Collaborator

This looks good to me, but hard to judge what the impact is, did you test performance before/after?

Copy link
Contributor

@dafeda dafeda left a comment

Choose a reason for hiding this comment

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

Nice 馃憤

This file provides the `res_yield` function, which reduced down to just
a 1ms sleep call. Replace Linux-only `pthread_yield` with standardised
`std::this_thread::yield` and use it instead of the sleep.
@pinkwah pinkwah merged commit bf9b310 into equinor:main Mar 31, 2022
@pinkwah pinkwah deleted the tp branch March 31, 2022 13:20
@sondreso sondreso added the release-notes:maintenance Automatically categorise as maintenance change in release notes label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:maintenance Automatically categorise as maintenance change in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate and clean up threading in enkf_plot_gendata.cpp Remove ThreadPool
4 participants