- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isMutexWait (0.1 sec)
-
src/runtime/export_test.go
type Sudog = sudog func Getg() *G { return getg() } func Goid() uint64 { return getg().goid } func GIsWaitingOnMutex(gp *G) bool { return readgstatus(gp) == _Gwaiting && gp.waitreason.isMutexWait() } var CasGStatusAlwaysTrack = &casgstatusAlwaysTrack //go:noinline func PanicForTesting(b []byte, i int) byte { return unexportedPanicForTesting(b, i) } //go:noinline
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
src/runtime/runtime2.go
} func (w waitReason) String() string { if w < 0 || w >= waitReason(len(waitReasonStrings)) { return "unknown wait reason" } return waitReasonStrings[w] } func (w waitReason) isMutexWait() bool { return w == waitReasonSyncMutexLock || w == waitReasonSyncRWMutexRLock || w == waitReasonSyncRWMutexLock } func (w waitReason) isWaitingForGC() bool { return isWaitingForGC[w] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 47.9K bytes - Viewed (0) -
src/runtime/proc.go
// time we spent in this state and add it to // runnableTime. now := nanotime() gp.runnableTime += now - gp.trackingStamp gp.trackingStamp = 0 case _Gwaiting: if !gp.waitreason.isMutexWait() { // Not blocking on a lock. break } // Blocking on a lock, measure it. Note that because we're // sampling, we have to multiply by our sampling period to get
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0)