FileLockIntervalTree
Index
Constructors
constructor
Returns FileLockIntervalTree
Methods
findLocksForProcess
Parameters
pid: number
The process ID to find locks for.
Returns RequestedRangeLock[]
All locked ranges for the given process.
findOverlapping
Find all ranges that overlap with the given range
Parameters
range: ByteRange
Returns LockedRange[]
findStrictestExistingLockType
Find the strictest existing lock type in the range lock tree.
Returns shared | exclusive | unlocked
The strictest existing lock type, or 'unlocked' if no locks exist.
insert
Insert a new locked range into the tree
Parameters
range: LockedRange
Returns void
isEmpty
Returns boolean
remove
Remove a lock range from the tree
Parameters
range: RequestedRangeLock
Returns void
Find all ranges locked by the given process.