kms: Don't block surface-threads on startup cond
This commit is contained in:
parent
31ff17a323
commit
12fab6e220
6 changed files with 24 additions and 24 deletions
|
|
@ -68,10 +68,13 @@ pub fn init_backend_auto(
|
|||
|
||||
{
|
||||
{
|
||||
let (lock, cvar) = &*state.common.startup_done;
|
||||
let mut startup = lock.lock().unwrap();
|
||||
*startup = true;
|
||||
cvar.notify_all();
|
||||
state
|
||||
.common
|
||||
.startup_done
|
||||
.store(true, std::sync::atomic::Ordering::SeqCst);
|
||||
for output in state.common.shell.read().unwrap().outputs() {
|
||||
state.backend.schedule_render(&output);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue