dcase_util.files.FileLock.lock

FileLock.lock()[source]

Lock file.

If lock is already set, method will wait until lock is released or timeout has reached.

Returns
self