sync

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package sync provides mutex types that can be swapped for deadlock detection. In release mode (default), this uses the standard sync package. In debug mode (build with -tags deadlock), this uses go-deadlock for detection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cond

type Cond = sync.Cond

Cond is the standard sync.Cond.

func NewCond

func NewCond(l Locker) *Cond

NewCond returns a new Cond.

type Locker

type Locker = sync.Locker

Locker is the standard sync.Locker interface.

type Map

type Map = sync.Map

Map is the standard sync.Map.

type Mutex

type Mutex = sync.Mutex

Mutex is a mutual exclusion lock. In release mode, this is the standard sync.Mutex.

type Once

type Once = sync.Once

Once is the standard sync.Once.

type Pool

type Pool = sync.Pool

Pool is the standard sync.Pool.

type RWMutex

type RWMutex = sync.RWMutex

RWMutex is a reader/writer mutual exclusion lock. In release mode, this is the standard sync.RWMutex.

type WaitGroup

type WaitGroup = sync.WaitGroup

WaitGroup is the standard sync.WaitGroup.

Jump to

Keyboard shortcuts

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