Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 121 for Xaddint32 (0.12 sec)

  1. src/runtime/race/race_unix_test.go

    	if err != nil {
    		t.Fatalf("failed to mmap memory: %v", err)
    	}
    	defer syscall.Munmap(data)
    	p := (*uint32)(unsafe.Pointer(&data[0]))
    	atomic.AddUint32(p, 1)
    	(*p)++
    	if *p != 2 {
    		t.Fatalf("data[0] = %v, expect 2", *p)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:36:26 UTC 2022
    - 762 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/testx.go

    	for atomic.LoadInt32(&issue1560) != 1 {
    		runtime.Gosched()
    	}
    	atomic.AddInt32(&issue1560, 1)
    	for atomic.LoadInt32(&issue1560) != 3 {
    		runtime.Gosched()
    	}
    	issue1560Ch <- true
    }
    
    func Issue1560FromGo() {
    	atomic.AddInt32(&issue1560, 1)
    	for atomic.LoadInt32(&issue1560) != 2 {
    		runtime.Gosched()
    	}
    	atomic.AddInt32(&issue1560, 1)
    	issue1560Ch <- true
    }
    
    func test1560(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. pilot/pkg/status/resourcelock_test.go

    	}
    	var runCount int32
    	x := make(chan struct{})
    	y := make(chan struct{})
    	mgr := NewManager(nil)
    	fakefunc := func(status *v1alpha1.IstioStatus, context any) *v1alpha1.IstioStatus {
    		x <- struct{}{}
    		atomic.AddInt32(&runCount, 1)
    		y <- struct{}{}
    		return nil
    	}
    	c1 := mgr.CreateIstioStatusController(fakefunc)
    	c2 := mgr.CreateIstioStatusController(fakefunc)
    	workers := NewWorkerPool(func(_ *config.Config, _ any) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. src/internal/poll/fd_wasip1.go

    	if s.RefCountPtr == nil {
    		s.RefCount = 1
    		s.RefCountPtr = &s.RefCount
    	}
    }
    
    func (s *SysFile) ref() SysFile {
    	atomic.AddInt32(s.RefCountPtr, +1)
    	return SysFile{RefCountPtr: s.RefCountPtr}
    }
    
    func (s *SysFile) destroy(fd int) error {
    	if s.RefCountPtr != nil && atomic.AddInt32(s.RefCountPtr, -1) > 0 {
    		return nil
    	}
    
    	// We don't use ignoringEINTR here because POSIX does not define
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. src/cmd/link/internal/arm64/asm.go

    		plt.SetUint32(ctxt.Arch, plt.Size()-4, 0x91000210)
    
    		// br      x17
    		plt.AddUint32(ctxt.Arch, 0xd61f0220)
    
    		// 3 nop for place holder
    		plt.AddUint32(ctxt.Arch, 0xd503201f)
    		plt.AddUint32(ctxt.Arch, 0xd503201f)
    		plt.AddUint32(ctxt.Arch, 0xd503201f)
    
    		// check gotplt.size == 0
    		if gotplt.Size() != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 47K bytes
    - Viewed (0)
  6. src/net/dnsconfig.go

    // indices of servers in c.servers when making queries.
    // When the rotate option is enabled, this offset increases.
    // Otherwise it is always 0.
    func (c *dnsConfig) serverOffset() uint32 {
    	if c.rotate {
    		return atomic.AddUint32(&c.soffset, 1) - 1 // return 0 to start
    	}
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/server_test.go

    		}
    	}
    }
    
    func (wg *WaitGroup) Add(i int32) {
    	select {
    	case <-wg.done:
    		panic("use of an already closed WaitGroup")
    	default:
    	}
    	atomic.AddInt32(&wg.count, i)
    }
    
    func (wg *WaitGroup) Done() {
    	i := atomic.AddInt32(&wg.count, -1)
    	if i == 0 {
    		close(wg.done)
    	}
    }
    
    func (wg *WaitGroup) C() <-chan struct{} {
    	return wg.done
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. src/crypto/internal/boring/bcache/cache_test.go

    				c.Put(k, v)
    			}
    			barrier.Done()
    			barrier.Wait()
    
    			for k, v := range m {
    				if cv := c.Get(k); cv != v {
    					t.Errorf("c.Get(%v) = %v, want %v", str(k), str(cv), str(v))
    					atomic.AddInt32(&lost, +1)
    				}
    			}
    		}()
    	}
    	wg.Wait()
    	if lost != 0 {
    		t.Errorf("lost %d entries", lost)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake_event_clock_test.go

    	now := ec.Now()
    	strictable := true
    	const batchSize = 100
    	times := make(chan time.Time, batchSize+1)
    	try := func(abs, strict bool, d time.Duration) {
    		f := func(u time.Time) {
    			realD := ec.Since(now)
    			atomic.AddInt32(&numDone, 1)
    			times <- u
    			if realD < d || strict && strictable && realD > d+fuzz {
    				t.Errorf("Asked for %v, got %v", d, realD)
    			}
    		}
    		if abs {
    			ec.EventAfterTime(f, now.Add(d))
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 07 04:07:31 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  10. pilot/pkg/xds/discovery_test.go

    					case pushingCh <- struct{}{}:
    					default:
    						errCh <- fmt.Errorf("multiple pushes happen simultaneously")
    						return
    					}
    					atomic.AddInt32(&fullPushes, 1)
    					time.Sleep(opts.debounceMax * 2)
    					<-pushingCh
    				} else {
    					atomic.AddInt32(&partialPushes, 1)
    				}
    			}
    			updateSent := uatomic.NewInt64(0)
    
    			wg.Add(1)
    			go func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top