Help us shape the future of Go! Take the 2026 Go Developer Survey

lock

package
v1.0.84 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Server = &sync.Mutex{}

Server guards the Satisfactory install directory and its process.

The task executor holds it for the duration of every task. Background tickers (AutoRestart, backup, save restore) must TryLock and skip when it is held: an auto-restart during an install, or a backup of a half-written install dir, is exactly the class of bug this exists to prevent.

It is a plain sync.Mutex and therefore NOT reentrant. Nothing reachable from a task handler may take it, because the executor already holds it.

Functions

func TryServer

func TryServer() bool

TryServer reports whether the lock was acquired. The caller must Unlock on true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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