syncutil

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicInt

type AtomicInt[T ~int | ~int32 | ~int64] atomic.Int64

func (*AtomicInt[T]) Load

func (a *AtomicInt[T]) Load() T

func (*AtomicInt[T]) Store

func (a *AtomicInt[T]) Store(value T)

type AtomicValue

type AtomicValue[T any] atomic.Value

func (*AtomicValue[T]) Load

func (a *AtomicValue[T]) Load() T

func (*AtomicValue[T]) Store

func (a *AtomicValue[T]) Store(value T)

type KeyedMutex

type KeyedMutex[K comparable] struct {
	// contains filtered or unexported fields
}

func (*KeyedMutex[K]) Lock

func (km *KeyedMutex[K]) Lock(key K) (unlock func())

type MutexGuarded

type MutexGuarded[T any] struct {
	// contains filtered or unexported fields
}

func (*MutexGuarded[T]) Load

func (mg *MutexGuarded[T]) Load() T

func (*MutexGuarded[T]) Modify

func (mg *MutexGuarded[T]) Modify(f func(value *T))

func (*MutexGuarded[T]) Store

func (mg *MutexGuarded[T]) Store(value T)

Jump to

Keyboard shortcuts

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