Ir al contenido principal

FileLockIntervalTree

Index

Constructors

constructor

Methods

findLocksForProcess

  • Find all ranges locked by the given process.


    Parameters

    • pid: number

      The process ID to find locks for.

    Returns RequestedRangeLock[]

    All locked ranges for the given process.

findOverlapping

findStrictestExistingLockType

  • findStrictestExistingLockType(): shared | exclusive | unlocked
  • 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

    Returns void

isEmpty

  • isEmpty(): boolean
  • Returns boolean

remove