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

Thread safety crash when launching noises from background thread. #136

Open
vblanco20-1 opened this issue May 12, 2024 · 1 comment
Open

Comments

@vblanco20-1
Copy link

With std::shared ptr option on or off. Doesnt matter. Happens randomly.

Seems to be related to #100 which happens again.

To replicate: Use taskflow or other similar parallel lib to launch multiple generators at once, in my project im launching 4 tasks to do noises at the same time. It seems initialization of simd structures causes a race condition. Currently debugging what is going on here to add more info to this issue.

@Auburn
Copy link
Owner

Auburn commented May 12, 2024

I've seen some other instances of this, I think I've got a proper fix for it in the upcoming release. In the mean time try calling GetSIMDLevel() on the main thread before starting your threads, which should stop the threads contesting the initialisation

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

No branches or pull requests

2 participants