squirrel.zarr.sync

Module Contents

Classes

SquirrelThreadSynchronizer

Provides synchronization using thread locks.

class squirrel.zarr.sync.SquirrelThreadSynchronizer

Bases: zarr.sync.ThreadSynchronizer

Provides synchronization using thread locks.

Modify ThreadSynchronizer, periodically remove unlocked locks to avoid excessive memory consumption.

__getitem__(item: str)threading.Lock

Return a lock from cache if exists, otherwise create a new lock.