lock

package
v0.0.0-...-de20e9d Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpireLock

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

func NewExpireLock

func NewExpireLock(reentrant bool) *ExpireLock

func (*ExpireLock) IsIdle

func (e *ExpireLock) IsIdle() bool

Lock 是否空闲

func (*ExpireLock) Lock

func (e *ExpireLock) Lock(ctx context.Context) bool

Lock 加锁

func (*ExpireLock) Unlock

func (e *ExpireLock) Unlock()

Lock 解锁

Jump to

Keyboard shortcuts

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