Skip to content

PR: More improvements to thread lifecycle management in TaskManagerBase - #41

Merged
jnsebgosselin merged 1 commit into
mainfrom
use_wait_not_qtwait
Sep 4, 2025
Merged

PR: More improvements to thread lifecycle management in TaskManagerBase#41
jnsebgosselin merged 1 commit into
mainfrom
use_wait_not_qtwait

Conversation

@jnsebgosselin

@jnsebgosselin jnsebgosselin commented Sep 4, 2025

Copy link
Copy Markdown
Member

In this PR, we refactor the thread lifecycle management in TaskManagerBase to use a signal-driven approach. Instead of polling with qtwait, we now rely on the QThread.finished signal to trigger pending task execution. This avoids blocking, recursion, and potential deadlocks, resulting in cleaner and more robust thread management.

@jnsebgosselin jnsebgosselin added this to the 0.9.1 milestone Sep 4, 2025
@jnsebgosselin jnsebgosselin added the enhancement New feature or request label Sep 4, 2025
@jnsebgosselin jnsebgosselin self-assigned this Sep 4, 2025
@jnsebgosselin jnsebgosselin added the bug Something isn't working label Sep 4, 2025
@jnsebgosselin
jnsebgosselin merged commit 9b06478 into main Sep 4, 2025
1 check passed
@jnsebgosselin
jnsebgosselin deleted the use_wait_not_qtwait branch September 4, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant