spinlock

package module
v0.0.0-...-0f7df96 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 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 Locker

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

A Locker must not be copied after first use.

func (*Locker) Lock

func (l *Locker) Lock()

Lock locks l. If the lock is already in use, the calling goroutine blocks until the locker is available.

func (*Locker) Unlock

func (l *Locker) Unlock()

Unlock unlocks l.

Jump to

Keyboard shortcuts

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