package mutex

import "github.com/amonks/run/internal/mutex"

Index

Types

type Mutex

type Mutex struct {
	// contains filtered or unexported fields
}

Mutex wraps sync.Mutex, providing these additional features:

func New

func New(name string) *Mutex

func (*Mutex) Lock

func (mu *Mutex) Lock(name string) *Mutex

func (*Mutex) Unlock

func (mu *Mutex) Unlock()