gid

package
v0.0.0-...-349f3ea Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DebugGoroutines = os.Getenv("DEBUG_GOROUTINES") == "1"
)

nolint gochecknoglobals

Functions

This section is empty.

Types

type GoroutineID

type GoroutineID string

GoroutineID is the goroutine ID's presentation.

func CurGoroutineID

func CurGoroutineID() GoroutineID

CurGoroutineID returns the current goroutine ID.

func NewGoroutineLock

func NewGoroutineLock() GoroutineID

NewGoroutineLock return a new goroutine lock.

func (GoroutineID) Check

func (g GoroutineID) Check()

Check checks that the current goroutine is on.

func (GoroutineID) CheckNotOn

func (g GoroutineID) CheckNotOn()

CheckNotOn checks that the current goroutine is not on.

func (GoroutineID) Uint64

func (g GoroutineID) Uint64() uint64

Uint64 return current goroutine ID's uint64 type.

Jump to

Keyboard shortcuts

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