Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for notesleep (0.2 sec)

  1. src/runtime/sigqueue.go

    			case sigIdle:
    				if sig.state.CompareAndSwap(sigIdle, sigReceiving) {
    					if GOOS == "darwin" || GOOS == "ios" {
    						sigNoteSleep(&sig.note)
    						break Receive
    					}
    					notetsleepg(&sig.note, -1)
    					noteclear(&sig.note)
    					break Receive
    				}
    			case sigSending:
    				if sig.state.CompareAndSwap(sigSending, sigIdle) {
    					break Receive
    				}
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. src/runtime/profbuf.go

    		// Return or sleep according to mode.
    		if mode == profBufNonBlocking {
    			// Necessary on Darwin, notetsleepg below does not work in signal handler, root cause of #61768.
    			return nil, nil, false
    		}
    		if !b.w.cas(bw, bw|profReaderSleeping) {
    			goto Read
    		}
    		// Committed to sleeping.
    		notetsleepg(&b.wait, -1)
    		noteclear(&b.wait)
    		goto Read
    	}
    	data = b.data[br.dataCount()%uint32(len(b.data)):]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top