mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
replace top level mutex with rw lock
This commit is contained in:
parent
33de8bbf1d
commit
2989c79fd0
5 changed files with 21 additions and 15 deletions
|
|
@ -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)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue