Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugGoroutines = os.Getenv("DEBUG_GOROUTINES") == "1"
Functions ¶
Types ¶
type Lock ¶
type Lock uint64
Lock represents a goroutine ID, with goroutine ID checked, that is whether GoRoutines of lock newer and check caller differ. disable when DebugGoroutines equals false
func NewLock ¶
func NewLock() Lock
NewLock returns a goroutine Lock, that checks whether goroutine of lock newer and check caller differ. Code borrowed from https://github.com/golang/go/blob/master/src/net/http/h2_bundle.go
func (Lock) CheckNotOn ¶
Check whether caller's goroutine escape lock
func (Lock) MustCheckNotOn ¶
func (g Lock) MustCheckNotOn()
Click to show internal directories.
Click to hide internal directories.