concurrent

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 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 MapMutex

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

MapMutex locks and blocks on specific keys

func NewMapMutex

func NewMapMutex() *MapMutex

NewMapMutex creates a new MapMutex

func (*MapMutex) Lock

func (m *MapMutex) Lock(lockName string)

Lock creates and locks or blocks on a lock

func (*MapMutex) Unlock

func (m *MapMutex) Unlock(lockName string)

Unlock releases a lock

Jump to

Keyboard shortcuts

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