syncutil

package
v0.22.1 Latest Latest
Warning

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

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

Documentation

Overview

Package syncutil provides mutex types that can optionally use deadlock detection. By default, standard sync.Mutex and sync.RWMutex are used with zero overhead. Build with -tags=deadlock to enable deadlock detection via github.com/sasha-s/go-deadlock.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutex

type Mutex struct {
	sync.Mutex
}

Mutex wraps sync.Mutex. Build with -tags=deadlock for deadlock detection.

type RWMutex

type RWMutex struct {
	sync.RWMutex
}

RWMutex wraps sync.RWMutex. Build with -tags=deadlock for deadlock detection.

Jump to

Keyboard shortcuts

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