shell: Using parking_lot's RwLock for fairness guarantees

This commit is contained in:
Victoria Brekenfeld 2025-05-20 17:41:27 +02:00 committed by Victoria Brekenfeld
parent 8194be30c6
commit 465813c1c5
42 changed files with 247 additions and 396 deletions

View file

@ -162,7 +162,7 @@ fn main() -> Result<(), Box<dyn Error>> {
}
// trigger routines
let clients = state.common.shell.write().unwrap().update_animations();
let clients = state.common.shell.write().update_animations();
{
let dh = state.common.display_handle.clone();
for client in clients.values() {
@ -173,7 +173,7 @@ fn main() -> Result<(), Box<dyn Error>> {
refresh(state);
{
let shell = state.common.shell.read().unwrap();
let shell = state.common.shell.read();
if shell.animations_going() {
for output in shell.outputs().cloned().collect::<Vec<_>>().into_iter() {
state.backend.schedule_render(&output);