lock

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: GPL-3.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
}

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) 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