synclock

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 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