synclock

package
v2.0.3-beta.7 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lock

func Lock(key string, rLock bool)

func UnLock

func UnLock(key string, rLock bool)

Types

type LockerPool

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

LockerPool is a set of reader/writer mutual exclusion locks.

func NewLockerPool

func NewLockerPool() *LockerPool

func (*LockerPool) Lock

func (l *LockerPool) Lock(key string, rLock bool)

func (*LockerPool) UnLock

func (l *LockerPool) UnLock(key string, rLock bool)

Jump to

Keyboard shortcuts

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