Redesign the wrapper's interiors for thread safety

There are a lot of locks needed now here, but none of them should be
contended. This is much better than potentially having RefCell's blow up
due to simultaneous mutable borrows, and the Arc is needed for the event
loop.
This commit is contained in:
Robbert van der Helm
2022-01-31 19:40:52 +01:00
parent 2f59adadcc
commit 4495064558
5 changed files with 266 additions and 48 deletions

View File

@@ -10,6 +10,8 @@ members = ["nih_plug_derive", "plugins/gain", "xtask"]
[dependencies]
nih_plug_derive = { path = "nih_plug_derive" }
crossbeam = "0.8"
lazy_static = "1.4"
parking_lot = "0.12"
serde = { version = "1.0", features = ["derive"] }