shell: Using parking_lot's RwLock for fairness guarantees
This commit is contained in:
parent
8194be30c6
commit
465813c1c5
42 changed files with 247 additions and 396 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue