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 {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |