type
LockFile
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 |
|---|
methods
| file |
Backing file we use to lock/acquire |
|---|---|
| lock |
Acquire the lock or raise CannotAcquireLockFileErr |
| unlock |
Release the lock if we are holding one |
Slot Details
file
File file()
Backing file we use to lock/acquire
lock
This lock()
Acquire the lock or raise CannotAcquireLockFileErr
make
new make(File file)
Construct with given file
unlock
This unlock()
Release the lock if we are holding one