locking

package
v0.4.16-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SharedLock

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

func NewSharedLock

func NewSharedLock(name string, capacity int) *SharedLock

func (*SharedLock) Lock

func (lock *SharedLock) Lock()

func (*SharedLock) Unlock

func (lock *SharedLock) Unlock()

func (*SharedLock) WouldBlock

func (lock *SharedLock) WouldBlock() bool

Jump to

Keyboard shortcuts

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