flock

package
v0.0.0-...-4aac04f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTimeout = errors.New("Timeout")
	ErrLocked  = errors.New("File is already locked")
)

Functions

func Flock

func Flock(f *os.File, exclusive bool) error

Flock locks a file for this process, this DOES NOT prevent the same process from opening the

func Funlock

func Funlock(f *os.File) error

Funlock releases a lock held on a file descriptor

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL