We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46fd0ac commit 14b0865Copy full SHA for 14b0865
src/rt_linux.rs
@@ -296,7 +296,9 @@ pub fn promote_thread_to_real_time_internal(
296
Ok(_) => Ok(handle),
297
Err(e) => {
298
let (_, _, limits) = get_limits()?;
299
- if limits.rlim_cur != libc::RLIM_INFINITY && unsafe { libc::setrlimit64(libc::RLIMIT_RTTIME, &limits) } < 0 {
+ if limits.rlim_cur != libc::RLIM_INFINITY
300
+ && unsafe { libc::setrlimit64(libc::RLIMIT_RTTIME, &limits) } < 0
301
+ {
302
return Err(AudioThreadPriorityError::new_with_inner(
303
"setrlimit64",
304
Box::new(OSError::last_os_error()),
0 commit comments