Module os.filelock stdlib

os.filelock
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
1
Imported by:
0
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

  • Standard Library

Imported by

This section is empty.

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn new

fn new(fileName string) FileLock

Structs

#struct FileLock

pub struct FileLock {
	name string
mut:
	fd int
}

#fn (&FileLock) acquire

Linux
fn (mut l &FileLock) acquire() !

#fn (&FileLock) release

Linux
fn (mut l &FileLock) release() bool

#fn (&FileLock) wait_acquire

Linux
fn (mut l &FileLock) wait_acquire(s int) bool

#fn (&FileLock) try_acquire

Linux
fn (mut l &FileLock) try_acquire() bool

Interfaces

This section is empty.

Enums

This section is empty.