lock

package
v0.0.0-...-af198dd Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Goroutine = "goroutine" // 协程字符串
	Space     = " "         // 空格
	CharSpace = ' '         // 空格
)

Variables

This section is empty.

Functions

func GetCurrentGid

func GetCurrentGid() int64

GetCurrentGid 获取当前协程id

Types

type ReentrantMutex

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

ReentrantMutex 实现可重入锁

func (*ReentrantMutex) Lock

func (my *ReentrantMutex) Lock()

func (*ReentrantMutex) TryLock

func (my *ReentrantMutex) TryLock() bool

func (*ReentrantMutex) Unlock

func (my *ReentrantMutex) Unlock()

Jump to

Keyboard shortcuts

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