Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 66 for Loadint64 (0.23 sec)

  1. src/internal/runtime/atomic/atomic_test.go

    	up64 := (*uint64)(u) // misaligned
    	p64 := (*int64)(u)   // misaligned
    
    	shouldPanic(t, "Load64", func() { atomic.Load64(up64) })
    	shouldPanic(t, "Loadint64", func() { atomic.Loadint64(p64) })
    	shouldPanic(t, "Store64", func() { atomic.Store64(up64, 0) })
    	shouldPanic(t, "Xadd64", func() { atomic.Xadd64(up64, 1) })
    	shouldPanic(t, "Xchg64", func() { atomic.Xchg64(up64, 1) })
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/util.go

    // for some quantity.
    type HighWaterMark int64
    
    // Update returns true if and only if 'current' is the highest value ever seen.
    func (hwm *HighWaterMark) Update(current int64) bool {
    	for {
    		old := atomic.LoadInt64((*int64)(hwm))
    		if current <= old {
    			return false
    		}
    		if atomic.CompareAndSwapInt64((*int64)(hwm), old, current) {
    			return true
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:05:06 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. internal/logger/target/kafka/kafka.go

    func (h *Target) Stats() types.TargetStats {
    	h.logChMu.RLock()
    	queueLength := len(h.logCh)
    	h.logChMu.RUnlock()
    
    	return types.TargetStats{
    		TotalMessages:  atomic.LoadInt64(&h.totalMessages),
    		FailedMessages: atomic.LoadInt64(&h.failedMessages),
    		QueueLength:    queueLength,
    	}
    }
    
    // Init initialize kafka target
    func (h *Target) Init(ctx context.Context) error {
    	if !h.kconfig.Enabled {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. cmd/xl-storage-disk-id-check.go

    	acc := e.cached.Load()
    	if lastT := atomic.LoadInt64(&e.cachedSec); lastT != t {
    		// Check if lastT was changed by someone else.
    		if atomic.CompareAndSwapInt64(&e.cachedSec, lastT, t) {
    			// Now we swap in a new.
    			newAcc := &AccElem{}
    			old := e.cached.Swap(newAcc)
    			var a AccElem
    			a.Size = atomic.LoadInt64(&old.Size)
    			a.Total = atomic.LoadInt64(&old.Total)
    			a.N = atomic.LoadInt64(&old.N)
    			e.mu.Lock()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  5. cmd/bucket-replication-stats.go

    		Queued:        r.qCache.getSiteStats(),
    		ActiveWorkers: r.ActiveWorkers(),
    		Metrics:       r.srStats.get(),
    		Proxied:       r.pCache.getSiteStats(),
    		ReplicaSize:   atomic.LoadInt64(&r.srStats.ReplicaSize),
    		ReplicaCount:  atomic.LoadInt64(&r.srStats.ReplicaCount),
    	}
    	return m
    }
    
    // Get replication metrics for a bucket from this node since this node came up.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. src/sync/atomic/doc.go

    // Consider using the more ergonomic and less error-prone [Int32.Load] instead.
    func LoadInt32(addr *int32) (val int32)
    
    // LoadInt64 atomically loads *addr.
    // Consider using the more ergonomic and less error-prone [Int64.Load] instead
    // (particularly if you target 32-bit platforms; see the bugs section).
    func LoadInt64(addr *int64) (val int64)
    
    // LoadUint32 atomically loads *addr.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. src/internal/runtime/atomic/atomic_arm.s

    TEXT ·Casuintptr(SB),NOSPLIT,$0-13
    	B	·Cas(SB)
    
    TEXT ·Casp1(SB),NOSPLIT,$0-13
    	B	·Cas(SB)
    
    TEXT ·CasRel(SB),NOSPLIT,$0-13
    	B	·Cas(SB)
    
    TEXT ·Loadint32(SB),NOSPLIT,$0-8
    	B	·Load(SB)
    
    TEXT ·Loadint64(SB),NOSPLIT,$-4-12
    	B	·Load64(SB)
    
    TEXT ·Loaduintptr(SB),NOSPLIT,$0-8
    	B	·Load(SB)
    
    TEXT ·Loaduint(SB),NOSPLIT,$0-8
    	B	·Load(SB)
    
    TEXT ·Storeint32(SB),NOSPLIT,$0-8
    	B	·Store(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. pkg/controller/controller_utils.go

    	// TODO: think about why this line being atomic doesn't matter
    	return atomic.LoadInt64(&e.add) <= 0 && atomic.LoadInt64(&e.del) <= 0
    }
    
    // GetExpectations returns the add and del expectations of the controllee.
    func (e *ControlleeExpectations) GetExpectations() (int64, int64) {
    	return atomic.LoadInt64(&e.add), atomic.LoadInt64(&e.del)
    }
    
    // MarshalLog makes a thread-safe copy of the values of the expectations that
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_amd64.s

    #include "textflag.h"
    
    TEXT ·Loaduintptr(SB), NOSPLIT, $0-16
    	JMP	·Load64(SB)
    
    TEXT ·Loaduint(SB), NOSPLIT, $0-16
    	JMP	·Load64(SB)
    
    TEXT ·Loadint32(SB), NOSPLIT, $0-12
    	JMP	·Load(SB)
    
    TEXT ·Loadint64(SB), NOSPLIT, $0-16
    	JMP	·Load64(SB)
    
    // bool Cas(int32 *val, int32 old, int32 new)
    // Atomically:
    //	if(*val == old){
    //		*val = new;
    //		return 1;
    //	} else
    //		return 0;
    TEXT ·Cas(SB),NOSPLIT,$0-17
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. src/internal/runtime/atomic/atomic_loong64.s

    	JMP	·Load64(SB)
    
    TEXT ·Loaduint(SB), NOSPLIT|NOFRAME, $0-16
    	JMP	·Load64(SB)
    
    TEXT ·Storeuintptr(SB), NOSPLIT, $0-16
    	JMP	·Store64(SB)
    
    TEXT ·Xadduintptr(SB), NOSPLIT, $0-24
    	JMP	·Xadd64(SB)
    
    TEXT ·Loadint64(SB), NOSPLIT, $0-16
    	JMP	·Load64(SB)
    
    TEXT ·Xaddint64(SB), NOSPLIT, $0-24
    	JMP	·Xadd64(SB)
    
    // bool casp(void **val, void *old, void *new)
    // Atomically:
    //	if(*val == old){
    //		*val = new;
    //		return 1;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top