pub struct AtomicParameterBridge { /* private fields */ }Expand description
Lock-free bridge for passing parameter values from the WebSocket thread to the audio thread.
Constructed once at startup with one Arc<AtomicF32> per parameter. The
inner HashMap is never mutated after construction — only the atomic
values change. This makes reads fully lock-free and real-time safe.
Implementations§
Source§impl AtomicParameterBridge
impl AtomicParameterBridge
Sourcepub fn new(parameters: &[ParameterInfo]) -> Self
pub fn new(parameters: &[ParameterInfo]) -> Self
Create a new bridge from parameter metadata.
Each parameter gets an AtomicF32 initialized to its default value.
Auto Trait Implementations§
impl Freeze for AtomicParameterBridge
impl !RefUnwindSafe for AtomicParameterBridge
impl Send for AtomicParameterBridge
impl Sync for AtomicParameterBridge
impl Unpin for AtomicParameterBridge
impl UnsafeUnpin for AtomicParameterBridge
impl !UnwindSafe for AtomicParameterBridge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more