Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for livable (0.15 sec)

  1. src/sync/rwmutex.go

    // Happens-before relationships are indicated to the race detector via:
    // - Unlock  -> Lock:  readerSem
    // - Unlock  -> RLock: readerSem
    // - RUnlock -> Lock:  writerSem
    //
    // The methods below temporarily disable handling of race synchronization
    // events in order to provide the more precise model above to the race
    // detector.
    //
    // For example, atomic.AddInt32 in RLock should not appear to provide
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. src/sync/pool.go

    func (p *Pool) Put(x any) {
    	if x == nil {
    		return
    	}
    	if race.Enabled {
    		if runtime_randn(4) == 0 {
    			// Randomly drop x on floor.
    			return
    		}
    		race.ReleaseMerge(poolRaceAddr(x))
    		race.Disable()
    	}
    	l, _ := p.pin()
    	if l.private == nil {
    		l.private = x
    	} else {
    		l.shared.pushHead(x)
    	}
    	runtime_procUnpin()
    	if race.Enabled {
    		race.Enable()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. src/sync/waitgroup.go

    // See the WaitGroup example.
    func (wg *WaitGroup) Add(delta int) {
    	if race.Enabled {
    		if delta < 0 {
    			// Synchronize decrements with Wait.
    			race.ReleaseMerge(unsafe.Pointer(wg))
    		}
    		race.Disable()
    		defer race.Enable()
    	}
    	state := wg.state.Add(uint64(delta) << 32)
    	v := int32(state >> 32)
    	w := uint32(state)
    	if race.Enabled && delta > 0 && v == int32(delta) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top