openLock method

LockStrategy openLock()

Opens a new lock strategy; each WalPack handle needs its own.

All locks of one storage are mutually exclusive (shared locks are serialized too, which is valid and keeps tests deterministic) and share the compaction generation like the native file locks do.

Implementation

// ignore: use_to_and_as_if_applicable, opens a new handle, not a conversion.
LockStrategy openLock() => _SharedMemoryLock(this);