const class util::LockFile

sys::Obj
  util::LockFile

Source

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

file

const File file

Source

Backing file we use to lock/acquire

lock

This lock()

Source

Acquire the lock or raise CannotAcquireLockFileErr

make

new make(File file)

Source

Construct with given file

unlock

This unlock()

Source

Release the lock if we are holding one