- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for setThreadCPUProfiler (0.39 sec)
-
src/runtime/proc.go
// it would deadlock. setThreadCPUProfiler(0) for !prof.signalLock.CompareAndSwap(0, 1) { osyield() } if prof.hz.Load() != hz { setProcessCPUProfiler(hz) prof.hz.Store(hz) } prof.signalLock.Store(0) lock(&sched.lock) sched.profilehz = hz unlock(&sched.lock) if hz != 0 { setThreadCPUProfiler(hz) } gp.m.locks-- }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0)