Skip to content

Conversation

@doudou
Copy link
Contributor

@doudou doudou commented Aug 31, 2018

This makes the pruning of thread pools a public API, which may
or may not be a no-op, depending on the underlying thread pool
implementation.

It also reworks the Ruby implementation to be more aggressive in
the pruning - it will kill all to-be-pruned threads in one call
instead of doing them one by one. Moreover, workers do not get
woken up to check for their idleness anymore, the thread of the
caller does it instead.

Closes #652

@pitr-ch
Copy link
Member

pitr-ch commented Oct 10, 2018

Thanks for the PR! I'll have a careful look. I'll also need to look into the java part, I'd like the behavior to match.

@doudou
Copy link
Contributor Author

doudou commented Dec 14, 2018

Ping ?

Copy link

@OunmanNgampeerapong OunmanNgampeerapong left a comment

Choose a reason for hiding this comment

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

Ok

This makes the pruning of thread pools a public API, which may
or may not be a no-op, depending on the underlying thread pool
implementation.

It also reworks the Ruby implementation to be more aggressive in
the pruning - it will kill all to-be-pruned threads in one call
instead of doing them one by one. Moreover, workers do not get
woken up to check for their idleness anymore, the thread of the
caller does it instead.
@doudou
Copy link
Contributor Author

doudou commented Feb 27, 2019

@pitr-ch updated. Sorry for taking so long.

@pitr-ch
Copy link
Member

pitr-ch commented Mar 6, 2019

@doudou thank you. And no worries, I appreciate you've found time to contribute.

@doudou
Copy link
Contributor Author

doudou commented Mar 31, 2020

Gents ... any chance this could be included ?

@chrisseaton
Copy link
Member

We'll see if we can merge this.

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.

expose the prune operation from thread pools

4 participants