Name Description Size
lib.rs # audio_thread_priority Promote the current thread, or another thread (possibly in another process), to real-time priority, suitable for low-latency audio processing. # Example ```rust use audio_thread_priority::{promote_current_thread_to_real_time, demote_current_thread_from_real_time}; // ... on a thread that will compute audio and has to be real-time: match promote_current_thread_to_real_time(512, 44100) { Ok(h) => { println!("this thread is now bumped to real-time priority."); // Do some real-time work... match demote_current_thread_from_real_time(h) { Ok(_) => { println!("this thread is now bumped back to normal.") } Err(_) => { println!("Could not bring the thread back to normal priority.") } }; } Err(e) => { eprintln!("Error promoting thread to real-time: {}", e); } } ``` 26019
mach_sys.rs automatically generated by rust-bindgen 1275
rt_linux.rs Widely copied from dbus-rs/dbus/examples/rtkit.rs 10868
rt_mach.rs 5438
rt_win.rs 7477