Sha256: b5973c2168c35d620256e624ee80f9e2d250c7afac9acef4c4be08efcb9ebe4f
Contents?: true
Size: 456 Bytes
Versions: 20
Compression:
Stored size: 456 Bytes
Contents
mod read_guard; mod rw_lock; mod write_guard; pub use read_guard::RwLockReadGuard; pub use rw_lock::RwLock; pub use write_guard::RwLockWriteGuard; use rustix::{fd::AsFd, fs}; pub(crate) fn compatible_unix_lock<Fd: AsFd>( fd: Fd, operation: fs::FlockOperation, ) -> rustix::io::Result<()> { #[cfg(not(target_os = "solaris"))] return fs::flock(fd, operation); #[cfg(target_os = "solaris")] return fs::fcntl_lock(fd, operation); }
Version data entries
20 entries across 20 versions & 1 rubygems