Skip to content

Wrap projectM instance access in a mutex #4

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

Merged
merged 2 commits into from
Jun 5, 2023
Merged

Conversation

revmischa
Copy link
Contributor

We share this projectM handle with the AudioCallback which runs in its own thread, so we should probably wrap all of our fiddling with the instance in a mutex.

Someone please let me know if this is correct at all!

@kblaschke
Copy link
Member

Can't say much about Rust's mutex implementation, but looks like it should do the trick.

@revmischa revmischa merged commit 46f9855 into master Jun 5, 2023
@revmischa revmischa deleted the pm-thread-safety branch June 5, 2023 02:23
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