UnixFileLock class

(Shortest import: from brian2.utils.filelock import UnixFileLock)

class brian2.utils.filelock.UnixFileLock(lock_file, timeout=- 1)[source]

Bases: brian2.utils.filelock.BaseFileLock

Uses the fcntl.flock() to hard lock the lock file on unix systems.