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

enable ThreadPool to join worker threads #1739

Closed
wants to merge 1 commit into from

Conversation

SrTobi
Copy link
Contributor

@SrTobi SrTobi commented Jul 16, 2019

Adds an option to ThreadPoolBuilder to configure the resulting ThreadPool
to join the worker threads when dropped.

fixes #1470

Adds an option to ThreadPoolBuilder to configure the resulting ThreadPool
to join the worker threads when dropped.

fixes rust-lang#1470
@SrTobi
Copy link
Contributor Author

SrTobi commented Jul 16, 2019

We might also (additionally or instead!) add a shutdown method that does the same.

@SrTobi
Copy link
Contributor Author

SrTobi commented Jul 19, 2019

This PR is garbage 😱 Sorry for that!

I didn't quite understood how the pool is shared with every task.

@SrTobi SrTobi closed this Jul 19, 2019
@SrTobi SrTobi deleted the SrTobi/threadpool-join branch July 21, 2019 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Waiting for threadpool threads to drop
1 participant