- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for decIfPositive (0.1 sec)
-
src/runtime/mgcpacer.go
// just using, ensuring work can complete. return nil, now } decIfPositive := func(val *atomic.Int64) bool { for { v := val.Load() if v <= 0 { return false } if val.CompareAndSwap(v, v-1) { return true } } } if decIfPositive(&c.dedicatedMarkWorkersNeeded) { // This P is now dedicated to marking until the end of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 55.4K bytes - Viewed (0)