const sync.mutexLocked
14 uses
sync (current package)
mutex.go#L37: mutexLocked = 1 << iota // mutex is locked
mutex.go#L74: if atomic.CompareAndSwapInt32(&m.state, 0, mutexLocked) {
mutex.go#L93: if old&(mutexLocked|mutexStarving) == mutexLocked && runtime_canSpin(iter) {
mutex.go#L109: new |= mutexLocked
mutex.go#L111: if old&(mutexLocked|mutexStarving) != 0 {
mutex.go#L118: if starving && old&mutexLocked != 0 {
mutex.go#L130: if old&(mutexLocked|mutexStarving) == 0 {
mutex.go#L146: if old&(mutexLocked|mutexWoken) != 0 || old>>mutexWaiterShift == 0 {
mutex.go#L149: delta := int32(mutexLocked - 1<mutex.go#L186: new := atomic.AddInt32(&m.state, -mutexLocked)
mutex.go#L195: if (new+mutexLocked)&mutexLocked == 0 {
mutex.go#L207: if old>>mutexWaiterShift == 0 || old&(mutexLocked|mutexWoken|mutexStarving) != 0 {