Skip to content

Commit 63fe93c

Browse files
committed
Fix typo, "contention" instead of "contestion"
1 parent ab8b188 commit 63fe93c

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

plinth-plugin/src/formats/clap/extensions/params.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ impl<P: ClapPlugin> Params<P> {
147147
let all_events = host_events.chain(editor_events);
148148

149149
if instance.audio_thread_state.active.load(Ordering::Acquire) {
150-
// Real-time safety: parking_lot Mutex is guaranteed to not do syscalls when uncontested
151-
// Contestion can only occur if we're setting up or tearing down the processor while flush is called
150+
// Real-time safety: parking_lot Mutex is guaranteed to not do syscalls when uncontented
151+
// contention can only occur if we're setting up or tearing down the processor while flush is called
152152
// In that case, ignore the flush call and request a new flush
153153
let Some(mut processor_ref) = instance.audio_thread_state.processor.try_lock() else {
154154
unsafe { ((*instance.host_ext_params).request_flush.unwrap())(instance.host) };

plinth-plugin/src/formats/clap/plugin_instance.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ impl<P: ClapPlugin> PluginInstance<P> {
261261
tracing::trace!("plugin::reset");
262262

263263
Self::with_plugin_instance(plugin, |instance| {
264-
// Real-time safety: parking_lot Mutex is guaranteed to not do syscalls when uncontested
265-
// Contestion can only occur if we're setting up or tearing down the processor while reset is called
264+
// Real-time safety: parking_lot Mutex is guaranteed to not do syscalls when uncontented
265+
// contention can only occur if we're setting up or tearing down the processor while reset is called
266266
let mut processor = instance.audio_thread_state.processor.lock();
267267
if let Some(processor) = processor.as_mut() {
268268
processor.reset();
@@ -310,8 +310,8 @@ impl<P: ClapPlugin> PluginInstance<P> {
310310
}
311311

312312
Self::with_plugin_instance(plugin, |instance| {
313-
// Real-time safety: parking_lot Mutex is guaranteed to not do syscalls when uncontested
314-
// Contestion can only occur if we're setting up or tearing down the processor while process is called
313+
// Real-time safety: parking_lot Mutex is guaranteed to not do syscalls when uncontented
314+
// contention can only occur if we're setting up or tearing down the processor while process is called
315315
// In that case, we will simply output silence
316316
let Some(mut processor_ref) = instance.audio_thread_state.processor.try_lock() else {
317317
output.fill(0.0);

plinth-plugin/src/formats/vst3/component.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ impl<P: Vst3Plugin> IAudioProcessorTrait for PluginComponent<P> {
318318
(Some(main_input), Some(main_output), aux_input)
319319
};
320320

321-
// Real-time safety: parking_lot Mutex is guaranteed to not do syscalls when uncontested
322-
// Contestion can only occur if we're setting up or tearing down the processor while process is called
321+
// Real-time safety: parking_lot Mutex is guaranteed to not do syscalls when uncontented
322+
// contention can only occur if we're setting up or tearing down the processor while process is called
323323
// In that case, we will simply output silence
324324
let Some(mut processor) = self.audio_thread_state.processor.try_lock() else {
325325
if let Some(mut main_output) = main_output {

0 commit comments

Comments
 (0)