Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for Loadint64 (0.32 sec)

  1. internal/rest/rpc-stats.go

    func GetRPCStats() RPCStats {
    	s := RPCStats{
    		Errs:     atomic.LoadUint64(&globalStats.errs),
    		DialErrs: atomic.LoadUint64(&globalStats.tcpDialErrs),
    	}
    	if v := atomic.LoadUint64(&globalStats.tcpDialCount); v > 0 {
    		s.DialAvgDuration = atomic.LoadUint64(&globalStats.tcpDialTotalDur) / v
    	}
    	return s
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Sep 29 16:27:58 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. internal/dsync/dsync-server_test.go

    func (l *lockServer) Refresh(args *LockArgs) (reply bool, err error) {
    	if d := atomic.LoadInt64(&l.responseDelay); d != 0 {
    		time.Sleep(time.Duration(d))
    	}
    
    	l.mutex.Lock()
    	defer l.mutex.Unlock()
    	reply = !l.lockNotFound
    	return reply, nil
    }
    
    func (l *lockServer) ForceUnlock(args *LockArgs) (reply bool, err error) {
    	if d := atomic.LoadInt64(&l.responseDelay); d != 0 {
    		time.Sleep(time.Duration(d))
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jan 23 16:46:37 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  3. internal/config/lambda/target/webhook.go

    // failed functions.
    func (target *WebhookTarget) Stat() event.TargetStat {
    	return event.TargetStat{
    		ID:             target.id,
    		ActiveRequests: atomic.LoadInt64(&target.activeRequests),
    		TotalRequests:  atomic.LoadInt64(&target.totalRequests),
    		FailedRequests: atomic.LoadInt64(&target.failedRequests),
    	}
    }
    
    // Send - sends an event to the webhook.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. cmd/dynamic-timeouts.go

    	}
    	return &dynamicTimeout{timeout: int64(timeout), minimum: int64(minimum)}
    }
    
    // Timeout returns the current timeout value
    func (dt *dynamicTimeout) Timeout() time.Duration {
    	return time.Duration(atomic.LoadInt64(&dt.timeout))
    }
    
    func (dt *dynamicTimeout) RetryInterval() time.Duration {
    	return dt.retryInterval
    }
    
    // LogSuccess logs the duration of a successful action that
    // did not hit the timeout
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Aug 19 23:21:05 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  5. cmd/site-replication-metrics.go

    		}
    		rt.ErrCounts["AccessDenied"]++
    	}
    }
    
    func (rt *RTimedMetrics) merge(o RTimedMetrics) (n RTimedMetrics) {
    	n.SinceUptime.Bytes = atomic.LoadInt64(&rt.SinceUptime.Bytes) + atomic.LoadInt64(&o.SinceUptime.Bytes)
    	n.SinceUptime.Count = atomic.LoadInt64(&rt.SinceUptime.Count) + atomic.LoadInt64(&o.SinceUptime.Count)
    
    	n.LastMinute = n.LastMinute.merge(rt.LastMinute)
    	n.LastMinute = n.LastMinute.merge(o.LastMinute)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. test/fixedbugs/issue24449.go

    		atomic.AddInt64(&cnt64, 2)
    	}
    	atomic.AddInt64(&cnt64, 4)
    	if len(a) >= len(b) {
    		atomic.AddInt64(&cnt64, 8)
    	}
    	if len(a) <= len(b) {
    		atomic.AddInt64(&cnt64, 16)
    	}
    	return atomic.LoadInt64(&cnt64) == 31
    }
    
    func main() {
    	if !test32([]int{}, []int{}) {
    		panic("test32")
    	}
    	if !test64([]int{}, []int{}) {
    		panic("test64")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 20 09:44:50 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  7. src/internal/runtime/atomic/stubs.go

    //go:noescape
    func Loaduint(ptr *uint) uint
    
    // TODO(matloob): Should these functions have the go:noescape annotation?
    
    //go:noescape
    func Loadint32(ptr *int32) int32
    
    //go:noescape
    func Loadint64(ptr *int64) int64
    
    //go:noescape
    func Xaddint32(ptr *int32, delta int32) int32
    
    //go:noescape
    func Xaddint64(ptr *int64, delta int64) int64
    
    //go:noescape
    func Xchgint32(ptr *int32, new int32) int32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. internal/grid/benchmark_test.go

    				spent := time.Since(t)
    				if spent > 0 && n > 0 {
    					// Since we are benchmarking n parallel servers we need to multiply by n.
    					// This will give an estimate of the total ops/s.
    					latency := float64(atomic.LoadInt64(&lat)) / float64(time.Millisecond)
    					b.ReportMetric(float64(n)*float64(ops)/spent.Seconds(), "vops/s")
    					b.ReportMetric(latency/float64(ops), "ms/op")
    				}
    			})
    		}
    	})
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_wasm.go

    // Export some functions via linkname to assembly in sync/atomic.
    //
    //go:linkname Load
    //go:linkname Loadp
    //go:linkname Load64
    //go:linkname Loadint32
    //go:linkname Loadint64
    //go:linkname Loaduintptr
    //go:linkname LoadAcquintptr
    //go:linkname Xadd
    //go:linkname Xaddint32
    //go:linkname Xaddint64
    //go:linkname Xadd64
    //go:linkname Xadduintptr
    //go:linkname Xchg
    //go:linkname Xchg64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. src/sync/atomic/asm.s

    TEXT ·LoadInt32(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Load(SB)
    
    TEXT ·LoadUint32(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Load(SB)
    
    TEXT ·LoadInt64(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Load64(SB)
    
    TEXT ·LoadUint64(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Load64(SB)
    
    TEXT ·LoadUintptr(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Loaduintptr(SB)
    
    TEXT ·LoadPointer(SB),NOSPLIT,$0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top