lock

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 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) OpenLogger added in v1.3.19

func (l *SpinLock) OpenLogger()

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 SpinRLock added in v1.3.15

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

func (*SpinRLock) Lock added in v1.3.15

func (l *SpinRLock) Lock()

func (*SpinRLock) OpenLogger added in v1.3.19

func (l *SpinRLock) OpenLogger()

func (*SpinRLock) TryLock added in v1.3.15

func (l *SpinRLock) TryLock() bool

func (*SpinRLock) TryLockInTime added in v1.3.21

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

func (*SpinRLock) Unlock added in v1.3.15

func (l *SpinRLock) Unlock()

Jump to

Keyboard shortcuts

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