Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for isMapped (0.14 sec)

  1. src/sync/atomic/type.go

    func (x *Bool) Swap(new bool) (old bool) { return SwapUint32(&x.v, b32(new)) != 0 }
    
    // CompareAndSwap executes the compare-and-swap operation for the boolean value x.
    func (x *Bool) CompareAndSwap(old, new bool) (swapped bool) {
    	return CompareAndSwapUint32(&x.v, b32(old), b32(new))
    }
    
    // b32 returns a uint32 0 or 1 representing b.
    func b32(b bool) uint32 {
    	if b {
    		return 1
    	}
    	return 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. src/sync/atomic/doc.go

    func CompareAndSwapInt32(addr *int32, old, new int32) (swapped bool)
    
    // CompareAndSwapInt64 executes the compare-and-swap operation for an int64 value.
    // Consider using the more ergonomic and less error-prone [Int64.CompareAndSwap] instead
    // (particularly if you target 32-bit platforms; see the bugs section).
    func CompareAndSwapInt64(addr *int64, old, new int64) (swapped bool)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. src/sync/atomic/atomic_test.go

    		x.i = val
    		if !CompareAndSwapInt32(&x.i, val, val+1) {
    			t.Fatalf("should have swapped %#x %#x", val, val+1)
    		}
    		if x.i != val+1 {
    			t.Fatalf("wrong x.i after swap: x.i=%#x val+1=%#x", x.i, val+1)
    		}
    		x.i = val + 1
    		if CompareAndSwapInt32(&x.i, val, val+2) {
    			t.Fatalf("should not have swapped %#x %#x", val, val+2)
    		}
    		if x.i != val+1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
  4. src/internal/syscall/unix/siginfo_linux.go

    // this struct corresponds to one used when Signo is SIGCHLD.
    //
    // NOTE fields are exported to be used by TestSiginfoChildLayout.
    type SiginfoChild struct {
    	Signo       int32
    	siErrnoCode                // Two int32 fields, swapped on MIPS.
    	_           [is64bit]int32 // Extra padding for 64-bit hosts only.
    
    	// End of common part. Beginning of signal-specific part.
    
    	Pid    int32
    	Uid    uint32
    	Status int32
    
    	// Pad to 128 bytes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 01:23:00 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. src/sync/map.go

    func (m *Map) CompareAndSwap(key, old, new any) (swapped bool) {
    	read := m.loadReadOnly()
    	if e, ok := read.m[key]; ok {
    		return e.tryCompareAndSwap(old, new)
    	} else if !read.amended {
    		return false // No existing value for key.
    	}
    
    	m.mu.Lock()
    	defer m.mu.Unlock()
    	read = m.loadReadOnly()
    	swapped = false
    	if e, ok := read.m[key]; ok {
    		swapped = e.tryCompareAndSwap(old, new)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. src/internal/syscall/unix/siginfo_linux_test.go

    	if v := unsafe.Sizeof(si); v != 128 {
    		t.Fatalf("sizeof: got %d, want 128", v)
    	}
    
    	ofSigno := 0
    	ofErrno := 4
    	ofCode := 8
    	if strings.HasPrefix(runtime.GOARCH, "mips") {
    		// These two fields are swapped on MIPS platforms.
    		ofErrno, ofCode = ofCode, ofErrno
    	}
    	ofPid := 12
    	if host64bit {
    		ofPid = 16
    	}
    	ofUid := ofPid + 4
    	ofStatus := ofPid + 8
    
    	offsets := []struct {
    		name string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 01:23:00 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. src/runtime/race.go

    //go:linkname abigen_sync_atomic_CompareAndSwapInt64 sync/atomic.CompareAndSwapInt64
    func abigen_sync_atomic_CompareAndSwapInt64(addr *int64, old, new int64) (swapped bool)
    
    //go:linkname abigen_sync_atomic_CompareAndSwapUint32 sync/atomic.CompareAndSwapUint32
    func abigen_sync_atomic_CompareAndSwapUint32(addr *uint32, old, new uint32) (swapped bool)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/atomic_mipsx.go

    //go:nosplit
    func Xchg64(addr *uint64, new uint64) (old uint64) {
    	lockAndCheck(addr)
    
    	old = *addr
    	*addr = new
    
    	unlock()
    	return
    }
    
    //go:nosplit
    func Cas64(addr *uint64, old, new uint64) (swapped bool) {
    	lockAndCheck(addr)
    
    	if (*addr) == old {
    		*addr = new
    		unlock()
    		return true
    	}
    
    	unlock()
    	return false
    }
    
    //go:nosplit
    func Load64(addr *uint64) (val uint64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 20:08:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/controller/controller.go

    	// dynamicTransformers updates the transformers when encryption config file changes.
    	dynamicTransformers *encryptionconfig.DynamicTransformers
    
    	// identity of the api server
    	apiServerID string
    
    	// can be swapped during testing
    	getEncryptionConfigHash func(ctx context.Context, filepath string) (string, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. pkg/registry/discovery/endpointslice/strategy_test.go

    					},
    					{
    						Hostname: ptr.To("hostname-1b"),
    						NodeName: ptr.To("node-1"),
    					},
    				},
    			},
    		},
    		{
    			name:      "v1 request, updated endpoints with topology node names swapped",
    			v1Request: true,
    			originalEPS: &discovery.EndpointSlice{
    				Endpoints: []discovery.Endpoint{
    					{
    						Hostname:           ptr.To("hostname-1"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
Back to top