spinlock

package
v0.0.0-...-8510552 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package spinlock provides a spinlock mutex.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutex

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

Mutex represents a spinlock.

func (*Mutex) Lock

func (m *Mutex) Lock()

Lock locks the mutex busy waiting (spinlock).

func (*Mutex) Unlock

func (m *Mutex) Unlock()

Unlock unlocks the mutex.

Jump to

Keyboard shortcuts

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