processlock

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package processlock provides kernel-owned process locks. Lock files persist; removing them would let another process lock a different inode at the same path.

Index

Constants

This section is empty.

Variables

View Source
var ErrLocked = errors.New("process lock held")

Functions

This section is empty.

Types

type Lock

type Lock struct {
	// contains filtered or unexported fields
}

func Acquire

func Acquire(path string) (*Lock, error)

func TryAcquire

func TryAcquire(path string) (*Lock, error)

func (*Lock) Close

func (lock *Lock) Close() error

Jump to

Keyboard shortcuts

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