locks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package locks provides a process-global keyed mutex used to serialize mutating filesystem operations on a single pack's cache directory.

The lock must live at package scope: the runner factory and resolver are constructed fresh per HTTP request and per detonation, so an instance-scoped lock would not be observed across those independent instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Acquire

func Acquire(key string) (release func())

Acquire locks the mutex associated with key and returns a release closure that unlocks it. Calls with the same key are serialized; calls with different keys proceed concurrently.

Types

This section is empty.

Jump to

Keyboard shortcuts

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