lock

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 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 Locked

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

func (*Locked) Unlock

func (a *Locked) Unlock()

type RLocked

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

func (*RLocked) Unlock

func (a *RLocked) Unlock()

type RwMutex

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

func NewRwMutex

func NewRwMutex(mu *sync.RWMutex) *RwMutex

func (*RwMutex) Lock

func (a *RwMutex) Lock() *Locked

func (*RwMutex) Map added in v0.6.0

func (a *RwMutex) Map(f func() error) error

func (*RwMutex) MapR added in v0.5.0

func (a *RwMutex) MapR(f func() error) error

func (*RwMutex) RLock

func (a *RwMutex) RLock() *RLocked

Jump to

Keyboard shortcuts

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