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#

_lock_noop(fd)

When locking is not available.

_lock_impl(fd)

lock(fd)

Attributes#

LOCK_BYTE

LOCK_ATTEMPTS

LOCK_SLEEP

LOCK_BYTE = 21#
LOCK_ATTEMPTS = 10#
LOCK_SLEEP = 1#
_lock_noop(fd)#

When locking is not available.

_lock_impl(fd)#
lock(fd)#