Skip to content

work_pool: move stopping from destructor to stop function#4437

Open
dsiganos wants to merge 4 commits intonanocurrency:developfrom
dsiganos:cleanup_stop_of_components
Open

work_pool: move stopping from destructor to stop function#4437
dsiganos wants to merge 4 commits intonanocurrency:developfrom
dsiganos:cleanup_stop_of_components

Conversation

@dsiganos
Copy link
Copy Markdown
Contributor

@dsiganos dsiganos commented Feb 17, 2024

The work_pool starts a number of threads and joins them in the destructor.
This is pattern we want to break. We want to have a separate stop stage before destruction.
This change makes work_pool follow the new pattern.

Comment thread nano/core_test/block_store.cpp Outdated
@dsiganos dsiganos changed the title work_pool: move stopping form destructor to stop function work_pool: move stopping from destructor to stop function Feb 17, 2024
Comment thread nano/test_common/testutil.hpp Outdated
@dsiganos dsiganos requested a review from pwojcikdev February 17, 2024 18:26
@dsiganos
Copy link
Copy Markdown
Contributor Author

I missed a whole bunch of work_pool cases that are exercised when start node in non-daemon modes.
I will fix them.

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.

2 participants