lock#
Record locking to manage potential repodata / repodata metadata file contention between conda processes. Try to acquire a lock on a single byte in the metadat file; modify both files; then release the lock.
Functions#
|
When locking is not available. |
|
|
|
|
Return a bool to report whether file locking is supported or not |
Attributes#
- LOCK_BYTE = 21#
- LOCK_ATTEMPTS = 10#
- LOCK_SLEEP = 1#
- _lock_noop(fd, lock_attempts)#
When locking is not available.
- _lock_impl(fd, lock_attempts)#
- lock(fd, *, lock_attempts=LOCK_ATTEMPTS)#
- locking_supported()#
Return a bool to report whether file locking is supported or not