bepzi / elysium

A JUCE app with Rust guts
GNU General Public License v3.0
4 stars 0 forks source link

Avoid allocations on the audio thread #10

Open bepzi opened 3 years ago

bepzi commented 2 years ago

Also, my clever trick with try_lock() might not be realtime safe, even if we intend not to acquire the lock, since it might interact with the OS thread scheduler regardless: https://www.youtube.com/watch?v=Tof5pRedskI&t=2280s

Although in the Q&A sessions, the speaker does imply that if everyone is doing try_lock() and never lock(), it might be okay?