You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if this crate supported read/write locks, which as far as I know, could be easily implemented using libc::LOCK_SH on Unix and removing the minwinbase::LOCKFILE_EXCLUSIVE_LOCK flag on Windows.
The API for this either means a separate SharedLockFile type or changing the type of the LockFile::locked field to an enum (so that the type of locking used can be queried). The former is probably cleaner and can easily be feature-gated.
The text was updated successfully, but these errors were encountered:
It would be nice if this crate supported read/write locks, which as far as I know, could be easily implemented using
libc::LOCK_SH
on Unix and removing theminwinbase::LOCKFILE_EXCLUSIVE_LOCK
flag on Windows.The API for this either means a separate
SharedLockFile
type or changing the type of theLockFile::locked
field to an enum (so that the type of locking used can be queried). The former is probably cleaner and can easily be feature-gated.The text was updated successfully, but these errors were encountered: