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

Issue #971 Make local copy of speeking_module to ensure it can be tested for NULL #972

Merged
merged 2 commits into from
Nov 24, 2024

Conversation

bbergquist0930
Copy link
Contributor

The speak thread can change the speeking_module to NULL while we are in this function. So even though speeking_module is tested for NULL, this is not good enough in a multi-threading environment.

This change grabs a local copy of speeking_module and then tests that for NULL so that even if a thread context switch were to occur and speeking_module is set to NULL, the local copy will remain stable and usable.

@sthibaul
Copy link
Collaborator

Please merge the test for NULL with the test above, no need to have two of them :)

@sthibaul sthibaul merged commit c045783 into brailcom:master Nov 24, 2024
7 checks passed
@sthibaul
Copy link
Collaborator

thanks!

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