lock

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: GPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Once

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

func (*Once) Do

func (o *Once) Do(f func())

func (*Once) Reset

func (o *Once) Reset()

type SpinLock

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

func (*SpinLock) Lock

func (l *SpinLock) Lock()

func (*SpinLock) TryLock

func (l *SpinLock) TryLock() bool

func (*SpinLock) TryLockInTime

func (l *SpinLock) TryLockInTime(dur time.Duration) bool

func (*SpinLock) Unlock

func (l *SpinLock) Unlock()

type SpinReentryLock

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

func (*SpinReentryLock) Lock

func (l *SpinReentryLock) Lock()

func (*SpinReentryLock) TryLock

func (l *SpinReentryLock) TryLock() bool

func (*SpinReentryLock) Unlock

func (l *SpinReentryLock) Unlock()

Jump to

Keyboard shortcuts

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