use parking_lot::RwLockWriteGuard; use std::collections::VecDeque; use std::sync::atomic::Ordering; use super::plugin::{Task, Wrapper}; use crate::context::ProcessContext; use crate::event_loop::EventLoop; use crate::plugin::{ClapPlugin, NoteEvent}; /// A [ProcessContext] implementation for the wrapper. This is a separate object so it can hold on /// to lock guards for event queues. Otherwise reading these events would require constant /// unnecessary atomic operations to lock the uncontested RwLocks. pub(crate) struct WrapperProcessContext<'a, P: ClapPlugin> { pub(super) plugin: &'a Wrapper
,
pub(super) input_events_guard: RwLockWriteGuard<'a, VecDeque