UnixFileLock class
(Shortest import: from brian2.utils.filelock import UnixFileLock)
- class brian2.utils.filelock.UnixFileLock(lock_file, timeout=-1)[source]
Bases:
BaseFileLock
Uses the
fcntl.flock()
to hard lock the lock file on unix systems.
(Shortest import: from brian2.utils.filelock import UnixFileLock)
Bases: BaseFileLock
Uses the fcntl.flock()
to hard lock the lock file on unix systems.