Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for notifyWaiters (0.19 sec)

  1. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    			// Pretend we didn't and put the tokens back.
    			s.cur -= n
    			s.notifyWaiters()
    		default:
    			isFront := s.waiters.Front() == elem
    			s.waiters.Remove(elem)
    			// If we're at the front and there're extra tokens left, notify other waiters.
    			if isFront && s.size > s.cur {
    				s.notifyWaiters()
    			}
    		}
    		s.mu.Unlock()
    		return ctx.Err()
    
    	case <-ready:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top