Skip to content

Conversation

@revmischa
Copy link
Member

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