Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Loadint64 (0.31 sec)

  1. 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)
  2. internal/logger/target/http/http.go

    func (h *Target) Stats() types.TargetStats {
    	h.logChMu.RLock()
    	queueLength := len(h.logCh)
    	h.logChMu.RUnlock()
    	stats := types.TargetStats{
    		TotalMessages:  atomic.LoadInt64(&h.totalMessages),
    		FailedMessages: atomic.LoadInt64(&h.failedMessages),
    		QueueLength:    queueLength,
    	}
    
    	return stats
    }
    
    // AssignMigrateTarget assigns a target
    // which will eventually replace the current target.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K 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. 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)
  6. src/runtime/race.go

    //go:linkname abigen_sync_atomic_LoadInt64 sync/atomic.LoadInt64
    func abigen_sync_atomic_LoadInt64(addr *int64) (val int64)
    
    //go:linkname abigen_sync_atomic_LoadUint32 sync/atomic.LoadUint32
    func abigen_sync_atomic_LoadUint32(addr *uint32) (val uint32)
    
    //go:linkname abigen_sync_atomic_LoadUint64 sync/atomic.LoadUint64
    func abigen_sync_atomic_LoadUint64(addr *uint64) (val uint64)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. internal/rest/client.go

    func (c *Client) IsOnline() bool {
    	return atomic.LoadInt32(&c.connected) == online
    }
    
    // LastConn returns when the disk was (re-)connected
    func (c *Client) LastConn() time.Time {
    	return time.Unix(0, atomic.LoadInt64(&c.lastConn))
    }
    
    // LastError returns previous error
    func (c *Client) LastError() error {
    	c.RLock()
    	defer c.RUnlock()
    	return fmt.Errorf("[%s] %w", c.lastErrTime.Format(time.RFC3339), c.lastErr)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. internal/grid/muxclient.go

    		// Already closed. This is not an error state;
    		// we may just be delivering the last responses.
    		return true
    	}
    
    	// Only check ping when not closed.
    	if got := time.Since(time.Unix(0, atomic.LoadInt64(&m.LastPong))); got > m.clientPingInterval*2 {
    		m.respMu.Unlock()
    		if debugPrint {
    			fmt.Printf("Mux %d: last pong %v ago, disconnecting\n", m.MuxID, got)
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/config.go

    		s.AggregatedLegacyDiscoveryGroupManager = discoveryendpoint.NewResourceManager("api")
    	}
    	for {
    		if c.JSONPatchMaxCopyBytes <= 0 {
    			break
    		}
    		existing := atomic.LoadInt64(&jsonpatch.AccumulatedCopySizeLimit)
    		if existing > 0 && existing < c.JSONPatchMaxCopyBytes {
    			break
    		}
    		if atomic.CompareAndSwapInt64(&jsonpatch.AccumulatedCopySizeLimit, existing, c.JSONPatchMaxCopyBytes) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
  10. internal/grid/connection.go

    	var wsw wsWriter
    	for {
    		var toSend []byte
    		select {
    		case <-ctx.Done():
    			return
    		case <-ping.C:
    			if c.State() != StateConnected {
    				continue
    			}
    			lastPong := atomic.LoadInt64(&c.LastPong)
    			if lastPong > 0 {
    				lastPongTime := time.Unix(0, lastPong)
    				if d := time.Since(lastPongTime); d > connPingInterval*2 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
Back to top