lock

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 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 ReinLock added in v1.5.2

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

func (*ReinLock) Lock added in v1.5.2

func (l *ReinLock) Lock()

func (*ReinLock) OpenLogger added in v1.5.2

func (l *ReinLock) OpenLogger()

func (*ReinLock) TryLock added in v1.5.2

func (l *ReinLock) TryLock() bool

func (*ReinLock) TryLockInTime added in v1.5.2

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

func (*ReinLock) Unlock added in v1.5.2

func (l *ReinLock) Unlock()

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()

Jump to

Keyboard shortcuts

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