Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 465 for atomic (0.19 sec)

  1. internal/grid/connection.go

    // this server or from the remote.
    type Connection struct {
    	// NextID is the next ID that can be used (atomic).
    	NextID uint64
    
    	// LastPong is last pong time (atomic)
    	// Only valid when StateConnected.
    	LastPong int64
    
    	// State of the connection (atomic)
    	state State
    
    	// Non-atomic
    	Remote string
    	Local  string
    
    	// ID of this connection instance.
    	id uuid.UUID
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

        checkHelperVersion(NO_ATOMIC_FIELD_UPDATER, "SynchronizedAtomicHelper");
    
        // Run the corresponding FuturesTest test method in a new classloader that disallows
        // certain core jdk classes.
        ClassLoader oldClassLoader = Thread.currentThread().getContextClassLoader();
        Thread.currentThread().setContextClassLoader(NO_ATOMIC_FIELD_UPDATER);
        try {
          runTestMethod(NO_ATOMIC_FIELD_UPDATER);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

        try {
          runTestMethod(NO_UNSAFE);
        } finally {
          Thread.currentThread().setContextClassLoader(oldClassLoader);
        }
    
        Thread.currentThread().setContextClassLoader(NO_ATOMIC_REFERENCE_FIELD_UPDATER);
        try {
          runTestMethod(NO_ATOMIC_REFERENCE_FIELD_UPDATER);
          // TODO(lukes): assert that the logs are full of errors
        } finally {
          Thread.currentThread().setContextClassLoader(oldClassLoader);
        }
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 6.2K bytes
    - Viewed (0)
  4. cmd/data-scanner-metric.go

    		duration := time.Since(startTime)
    
    		atomic.AddUint64(&p.operations[s], 1)
    		if s < scannerMetricLastRealtime {
    			p.latency[s].addSize(duration, int64(sz))
    		}
    	}
    }
    
    // incTime will increment time on metric s with a specific duration.
    // Use for s < scannerMetricLastRealtime
    func (p *scannerMetrics) incTime(s scannerMetric, d time.Duration) {
    	atomic.AddUint64(&p.operations[s], 1)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 25 05:15:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  5. cmd/xl-storage-disk-id-check.go

    	diskHealthOK int32 = iota
    	diskHealthFaulty
    )
    
    type diskHealthTracker struct {
    	// atomic time of last success
    	lastSuccess int64
    
    	// atomic time of last time a token was grabbed.
    	lastStarted int64
    
    	// Atomic status of disk.
    	status atomic.Int32
    
    	// Atomic number indicates if a disk is hung
    	waiting atomic.Int32
    }
    
    // newDiskHealthTracker creates a new disk health tracker.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. internal/dsync/dsync-server_test.go

    	defer l.mutex.Unlock()
    	l.lockNotFound = !refreshed
    }
    
    func (l *lockServer) setResponseDelay(responseDelay time.Duration) {
    	atomic.StoreInt64(&l.responseDelay, int64(responseDelay))
    }
    
    func (l *lockServer) Lock(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()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 23 16:46:37 GMT 2023
    - 8.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

    import static java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater;
    import static java.util.concurrent.atomic.AtomicReferenceFieldUpdater.newUpdater;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.j2objc.annotations.ReflectionSupport;
    import java.util.Set;
    import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
    import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  8. 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)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  9. internal/config/lambda/target/lazyinit.go

    package target
    
    import (
    	"sync"
    	"sync/atomic"
    )
    
    // Inspired from Golang sync.Once but it is only marked
    // initialized when the provided function returns nil.
    
    type lazyInit struct {
    	done uint32
    	m    sync.Mutex
    }
    
    func (l *lazyInit) Do(f func() error) error {
    	if atomic.LoadUint32(&l.done) == 0 {
    		return l.doSlow(f)
    	}
    	return nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  10. internal/config/lambda/target/webhook.go

    		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.
    func (target *WebhookTarget) Send(eventData event.Event) (resp *http.Response, err error) {
    	atomic.AddInt64(&target.activeRequests, 1)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Nov 17 20:02:26 GMT 2023
    - 6.7K bytes
    - Viewed (0)
Back to top