mutex

package
v0.0.0-...-2e1cf37 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ex Exclusion, fn func())

func RunErr

func RunErr(ex Exclusion, fn func() error) error

Types

type Exclusion

type Exclusion interface {
	Exit()
}

type Zone

type Zone struct {
	sync.RWMutex
}

func (*Zone) Exclusive

func (z *Zone) Exclusive() Exclusion

func (*Zone) Shared

func (z *Zone) Shared() Exclusion

Jump to

Keyboard shortcuts

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