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

non-thread-safe and deprecated use of CRT rand #43

Closed
sophiapoirier opened this issue Jul 17, 2021 · 1 comment
Closed

non-thread-safe and deprecated use of CRT rand #43

sophiapoirier opened this issue Jul 17, 2021 · 1 comment
Assignees

Comments

@sophiapoirier
Copy link
Owner

The C runtime library function rand is deprecated (C++ replacements live in the STL header random), but more importantly we use it in non-thread-safe fashion in various places in our effects (e.g. randomize parameter value actions can be executed from several threads, like main or MIDI event threads, but the random generator has global state that mutates when generating the next value and is not thread-safe).

@sophiapoirier
Copy link
Owner Author

I've decided to break out the thread-safety issue that is specific to Transverb in #45

sophiapoirier added a commit that referenced this issue Jul 20, 2021
…r reuse of engine instances and thereby greatly reduce memory usage (optimizes #43)
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

1 participant