type

LockFile

src const class LockFile : Obj

LockFile is used to acquire an exclusive lock to prevent two different processes from using same files

constructors

make

Construct with given file

fields

file

Backing file we use to lock/acquire

methods

lock

Acquire the lock or raise CannotAcquireLockFileErr

unlock

Release the lock if we are holding one

Slot Details

file

src const File file

Backing file we use to lock/acquire

lock

src This lock()

Acquire the lock or raise CannotAcquireLockFileErr

make

src new make(File file)

Construct with given file

unlock

src This unlock()

Release the lock if we are holding one