os.filelock #
fn new #
fn new(fileName string) FileLock
struct FileLock #
struct FileLock {
name string
mut:
fd int
}
fn (FileLock) acquire #
fn (mut l FileLock) acquire() !
fn (FileLock) release #
fn (mut l FileLock) release() bool
fn (FileLock) try_acquire #
fn (mut l FileLock) try_acquire() bool
fn (FileLock) unlink #
unsafe
fn (mut l FileLock) unlink()
fn (FileLock) wait_acquire #
fn (mut l FileLock) wait_acquire(timeout time.Duration) bool