lock

package
v0.0.1-20220809-0007 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

func NewMap

func NewMap() *Map

func (Map) Lock

func (t Map) Lock(name string)

func (Map) Unlock

func (t Map) Unlock(name string)

type RWMap

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

func NewRWMap

func NewRWMap() *RWMap

func (RWMap) Lock

func (t RWMap) Lock(name string)

func (RWMap) RLock

func (t RWMap) RLock(name string)

func (RWMap) RUnlock

func (t RWMap) RUnlock(name string)

func (RWMap) Unlock

func (t RWMap) Unlock(name string)

Jump to

Keyboard shortcuts

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