lock

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

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

Go to latest
Published: Mar 1, 2023 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 Locks

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

Locks provides rw locks for key

func Make

func Make(tableSize int) *Locks

func (*Locks) Lock

func (locks *Locks) Lock(key string)

func (*Locks) Locks

func (locks *Locks) Locks(keys ...string)

func (*Locks) RLock

func (locks *Locks) RLock(key string)

func (*Locks) RLocks

func (locks *Locks) RLocks(keys ...string)

func (*Locks) RUnLock

func (locks *Locks) RUnLock(key string)

func (*Locks) RUnLocks

func (locks *Locks) RUnLocks(keys ...string)

func (*Locks) RWLocks

func (locks *Locks) RWLocks(writeKeys []string, readKeys []string)

func (*Locks) RWUnLocks

func (locks *Locks) RWUnLocks(writeKeys []string, readKeys []string)

func (*Locks) UnLock

func (locks *Locks) UnLock(key string)

func (*Locks) UnLocks

func (locks *Locks) UnLocks(keys ...string)

Jump to

Keyboard shortcuts

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