sync

package
v0.0.0-...-53c21df Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutex

type Mutex struct {
	sync.Mutex
}

func (*Mutex) Count

func (m *Mutex) Count() int

Count gets the metric of the number of mutex waiters and holders.

func (*Mutex) IsLocked

func (m *Mutex) IsLocked() bool

IsLocked whether the mutex is locked.

func (*Mutex) IsStarving

func (m *Mutex) IsStarving() bool

IsStarving whether the mutex is starving.

func (*Mutex) IsWoken

func (m *Mutex) IsWoken() bool

IsWoken whether any waiters have been woken.

Jump to

Keyboard shortcuts

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