Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 121 for Xaddint32 (0.16 sec)

  1. src/cmd/compile/internal/types2/check.go

    	if check.conf.EnableAlias {
    		if atomic.AddInt32(&_aliasAny, 1) <= 0 {
    			panic("EnableAlias set while !EnableAlias type checking is ongoing")
    		}
    		defer atomic.AddInt32(&_aliasAny, -1)
    	} else {
    		if atomic.AddInt32(&_aliasAny, -1) >= 0 {
    			panic("!EnableAlias set while EnableAlias type checking is ongoing")
    		}
    		defer atomic.AddInt32(&_aliasAny, 1)
    	}
    
    	print := func(msg string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/net/util_test.go

    	}
    }
    
    func (lb *tcpLB) serve(stopCh chan struct{}) {
    	conn, err := lb.ln.Accept()
    	if err != nil {
    		lb.t.Fatalf("failed to accept: %v", err)
    	}
    	atomic.AddInt32(&lb.dials, 1)
    	go lb.handleConnection(conn, stopCh)
    }
    
    func newLB(t *testing.T, serverURL string) *tcpLB {
    	ln, err := net.Listen("tcp", "127.0.0.1:0")
    	if err != nil {
    		t.Fatalf("failed to bind: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 19:02:55 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/runtime/race/race_linux_test.go

    	}
    
    	// This should not fault.
    	a := (*uint32)(unsafe.Pointer(&b[pagesize-4]))
    	atomic.StoreUint32(a, 1)
    	if x := atomic.LoadUint32(a); x != 1 {
    		t.Fatalf("bad atomic value: %v, want 1", x)
    	}
    	if x := atomic.AddUint32(a, 1); x != 2 {
    		t.Fatalf("bad atomic value: %v, want 2", x)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 16 14:09:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. src/sync/atomic/atomic_test.go

    var hammer32 = map[string]func(*uint32, int){
    	"SwapInt32":             hammerSwapInt32,
    	"SwapUint32":            hammerSwapUint32,
    	"SwapUintptr":           hammerSwapUintptr32,
    	"AddInt32":              hammerAddInt32,
    	"AddUint32":             hammerAddUint32,
    	"AddUintptr":            hammerAddUintptr32,
    	"CompareAndSwapInt32":   hammerCompareAndSwapInt32,
    	"CompareAndSwapUint32":  hammerCompareAndSwapUint32,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
  5. pkg/util/iptables/monitor_test.go

    	tables := []Table{TableMangle, TableFilter, TableNAT}
    	go ipt.Monitor(canary, tables, func() {
    		if !ensureNoChains(mfe) {
    			t.Errorf("reload called while canaries still exist")
    		}
    		atomic.AddUint32(&reloads, 1)
    	}, 100*time.Millisecond, stopCh)
    
    	// Monitor should create canary chains quickly
    	if err := waitForChains(mfe, canary, tables); err != nil {
    		t.Errorf("failed to create iptables canaries: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  6. src/sync/mutex.go

    					// Starvation mode is so inefficient, that two goroutines
    					// can go lock-step infinitely once they switch mutex
    					// to starvation mode.
    					delta -= mutexStarving
    				}
    				atomic.AddInt32(&m.state, delta)
    				break
    			}
    			awoke = true
    			iter = 0
    		} else {
    			old = m.state
    		}
    	}
    
    	if race.Enabled {
    		race.Acquire(unsafe.Pointer(m))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. src/cmd/link/internal/s390x/asm.go

    		plt.AddUint8(0x10)
    		plt.AddUint8(0x0c)
    		plt.AddUint8(0x00)
    		plt.AddUint8(0x14)
    		// jg .plt
    		plt.AddUint8(0xc0)
    		plt.AddUint8(0xf4)
    
    		plt.AddUint32(target.Arch, uint32(-((plt.Size() - 2) >> 1))) // roll-your-own relocation
    		//.plt index
    		plt.AddUint32(target.Arch, uint32(rela.Size())) // rela size before current entry
    
    		// rela
    		rela.AddAddrPlus(target.Arch, got.Sym(), got.Size()-8)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  8. src/expvar/expvar_test.go

    			keys[j] = fmt.Sprint(i, j)
    		}
    		procKeys[i] = keys
    	}
    
    	m := new(Map).Init()
    	v := new(Int)
    	b.ResetTimer()
    
    	var n int32
    	b.RunParallel(func(pb *testing.PB) {
    		i := int(atomic.AddInt32(&n, 1)-1) % len(procKeys)
    		keys := procKeys[i]
    
    		for pb.Next() {
    			for _, k := range keys {
    				m.Set(k, v)
    			}
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  9. src/go/types/check.go

    	if check.conf._EnableAlias {
    		if atomic.AddInt32(&_aliasAny, 1) <= 0 {
    			panic("EnableAlias set while !EnableAlias type checking is ongoing")
    		}
    		defer atomic.AddInt32(&_aliasAny, -1)
    	} else {
    		if atomic.AddInt32(&_aliasAny, -1) >= 0 {
    			panic("!EnableAlias set while EnableAlias type checking is ongoing")
    		}
    		defer atomic.AddInt32(&_aliasAny, 1)
    	}
    
    	print := func(msg string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/interpodaffinity/filtering.go

    		for _, existingPod := range nodeInfo.PodsWithRequiredAntiAffinity {
    			topoMap.updateWithAntiAffinityTerms(existingPod.RequiredAntiAffinityTerms, pod, nsLabels, node, 1)
    		}
    		if len(topoMap) != 0 {
    			topoMaps[atomic.AddInt32(&index, 1)] = topoMap
    		}
    	}
    	pl.parallelizer.Until(ctx, len(nodes), processNode, pl.Name())
    
    	result := make(topologyToMatchedTermCount)
    	for i := 0; i <= int(index); i++ {
    		result.append(topoMaps[i])
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 10:24:54 UTC 2023
    - 14.6K bytes
    - Viewed (0)
Back to top