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 handling of exceptions to named_thread_pool #632

Merged
merged 11 commits into from
Jan 25, 2023
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Jan 10, 2023

Instead of exceptions leaking out and terminating thread in named_thread_pool provide ability to specify an exception handler. In all our non-test cases we want the application to shutdown.

Pulled in changes from #592 that allows for delayed start of the thread pool.
Added some tests for named_thread_pool.

As discussed here: #665 (comment) Moved to always using delayed start with number of threads provided in start(). Also moved specification of exception handler to start() as that is cleaner than requiring it in the constructor.

@heifner heifner added the OCI Work exclusive to OCI team label Jan 13, 2023
@heifner heifner requested a review from greg7mdp January 21, 2023 15:05
Copy link
Contributor

@greg7mdp greg7mdp left a comment

Choose a reason for hiding this comment

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

Nice changes Kevin!

@heifner heifner requested a review from greg7mdp January 25, 2023 13:54
@heifner heifner merged commit e55669c into main Jan 25, 2023
@heifner heifner deleted the named-tp-except branch January 25, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants