Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for runtime_doSpin (0.42 sec)

  1. src/sync/mutex.go

    			// to not wake other blocked goroutines.
    			if !awoke && old&mutexWoken == 0 && old>>mutexWaiterShift != 0 &&
    				atomic.CompareAndSwapInt32(&m.state, old, old|mutexWoken) {
    				awoke = true
    			}
    			runtime_doSpin()
    			iter++
    			old = m.state
    			continue
    		}
    		new := old
    		// Don't try to acquire starving mutex, new arriving goroutines must queue.
    		if old&mutexStarving == 0 {
    			new |= mutexLocked
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. src/runtime/proc.go

    //   - github.com/sagernet/gvisor
    //   - gvisor.dev/gvisor
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname sync_runtime_doSpin sync.runtime_doSpin
    //go:nosplit
    func sync_runtime_doSpin() {
    	procyield(active_spin_cnt)
    }
    
    var stealOrder randomOrder
    
    // randomOrder/randomEnum are helper types for randomized work stealing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top