replace top level mutex with rw lock

This commit is contained in:
🪞👃🪞 2024-07-05 20:02:55 +03:00
parent 33de8bbf1d
commit 2989c79fd0
5 changed files with 21 additions and 15 deletions

View file

@ -37,8 +37,8 @@ pub fn main () -> Usually<()> {
app.quant = 24;
// Start main loop
app.run(Some(|app: Arc<Mutex<App>>|{
let mut state = app.lock().unwrap();
app.run(Some(|app: Arc<RwLock<App>>|{
let mut state = app.write().unwrap();
// Start JACK and setup device graph
let jack = jack_run("tek", &app)?;