pinned_sync/sys/unix/
mod.rs

1pub mod condvar;
2pub mod mutex;
3pub mod rwlock;
4
5pub fn cvt_nz(error: libc::c_int) -> std::io::Result<()> {
6    if error == 0 {
7        Ok(())
8    } else {
9        Err(std::io::Error::from_raw_os_error(error))
10    }
11}