Skip to content

Fix threadpool use after move.#416

Merged
gbin merged 4 commits into
masterfrom
matthewashton-k/threadpool-clone
Aug 1, 2025
Merged

Fix threadpool use after move.#416
gbin merged 4 commits into
masterfrom
matthewashton-k/threadpool-clone

Conversation

@matthewashton-k

Copy link
Copy Markdown
Collaborator

No description provided.

@matthewashton-k matthewashton-k changed the title clone threadpool Add .clone() to threadpool, and second background task in example. Aug 1, 2025
@matthewashton-k matthewashton-k marked this pull request as ready for review August 1, 2025 02:11
@matthewashton-k matthewashton-k requested a review from gbin August 1, 2025 02:26
),
(
id: "task2",
type: "tasks::ExampleTaskSlow",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe reuse the same type but add a wait parameter?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sure thing!

@gbin

gbin commented Aug 1, 2025

Copy link
Copy Markdown
Collaborator

Tip: when opening a PR in the title explain the why and not the what: ie. We can see you added a clone in the code but the collaborators might not know why.
Thanks!

@matthewashton-k matthewashton-k changed the title Add .clone() to threadpool, and second background task in example. Fix threadpool use after move. Aug 1, 2025
@matthewashton-k matthewashton-k requested a review from gbin August 1, 2025 02:50
@gbin gbin merged commit 3320e27 into master Aug 1, 2025
6 checks passed
@gbin gbin deleted the matthewashton-k/threadpool-clone branch August 1, 2025 09:15
@makeecat makeecat added the bug Something isn't working label Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants