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

Don't reset running flag when exiting thread #359

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

harryz2000
Copy link
Contributor

@harryz2000 harryz2000 commented Oct 14, 2024

The reason is running flag was used for Stop() to determine whether need to join the thread. The thread must be joined before the thread object is freed.

@harryz2000 harryz2000 changed the title Don't reset isRunning flag when exiting thread Don't reset running flag when exiting thread Oct 14, 2024
Copy link
Contributor

@bcostdolby bcostdolby left a comment

Choose a reason for hiding this comment

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

lgtm

@harryz2000 harryz2000 merged commit 67a1dba into master Oct 14, 2024
2 checks passed
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