refactor(baseliner): Replace shared Mutex state with thread-safe control snapshots

Eliminate lock contention between the baseliner, ratecontroller, and selector by moving to a message-passing architecture using immutable snapshots of reflector state. This improves data consistency and simplifies cross-thread communication.
This commit is contained in:
Nils Andreas Svee committed 2026-07-24 00:05:41 +07:00
1 parent 51377f947f
commit c1bcb22b23
5 files changed
+703 -250

No files matched your search

-1
View File
@@ -5,7 +5,6 @@
use anyhow::anyhow;
use std::sync::{Arc, Mutex, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
pub type ArcMutex<T> = Arc<Mutex<T>>;
pub type ArcRwLock<T> = Arc<RwLock<T>>;
pub trait MutexExt<T> {