Skip to content

Commit

Permalink
use_file: add #[inline(never)] to open_or_wait
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov authored Feb 1, 2025
1 parent 4cb8eba commit 1765f70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backends/use_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ fn open_readonly(path: &[u8]) -> Result<libc::c_int, Error> {
}

#[cold]
#[inline(never)]
fn open_or_wait() -> Result<libc::c_int, Error> {
loop {
match FD.load(Ordering::Acquire) {
Expand Down

0 comments on commit 1765f70

Please sign in to comment.