- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GIsWaitingOnMutex (0.12 sec)
-
src/runtime/metrics_test.go
// on systems with coarse timer granularity. const blockTime = 100 * time.Millisecond // Make sure the goroutine spawned above actually blocks on the lock. for { if runtime.GIsWaitingOnMutex(gp) { break } runtime.Gosched() } // Let some amount of time pass. time.Sleep(blockTime) // Let the other goroutine acquire the lock. mu.Unlock1() done <- true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 45K bytes - Viewed (0) -
src/runtime/export_test.go
return mheap_.arenaHints.addr } type G = g 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 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0)