Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,357 for atomics (0.14 sec)

  1. android/guava/src/com/google/common/util/concurrent/Atomics.java

    import com.google.common.annotations.GwtIncompatible;
    import java.util.concurrent.atomic.AtomicReference;
    import java.util.concurrent.atomic.AtomicReferenceArray;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Static utility methods pertaining to classes in the {@code java.util.concurrent.atomic} package.
     *
     * @author Kurt Alfred Kluever
     * @since 10.0
     */
    @GwtIncompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 20 10:45:35 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/Atomics.java

    import com.google.common.annotations.GwtIncompatible;
    import java.util.concurrent.atomic.AtomicReference;
    import java.util.concurrent.atomic.AtomicReferenceArray;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Static utility methods pertaining to classes in the {@code java.util.concurrent.atomic} package.
     *
     * @author Kurt Alfred Kluever
     * @since 10.0
     */
    @GwtIncompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 20 10:45:35 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  3. test/codegen/atomics.go

    // These tests check that atomic instructions without dynamic checks are
    // generated for architectures that support them
    
    package codegen
    
    import "sync/atomic"
    
    type Counter struct {
    	count int32
    }
    
    func (c *Counter) Increment() {
    	// Check that ARm64 v8.0 has both atomic instruction (LDADDALW) and a dynamic check
    	// (for arm64HasATOMICS), while ARM64 v8.1 has only atomic and no dynamic check.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 728 bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java

        assertEquals(null, Atomics.newReference(null).get());
        assertEquals(OBJECT, Atomics.newReference(OBJECT).get());
      }
    
      public void testNewReferenceArray_withLength() throws Exception {
        int length = 42;
        AtomicReferenceArray<String> refArray = Atomics.newReferenceArray(length);
        for (int i = 0; i < length; ++i) {
          assertEquals(null, refArray.get(i));
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java

        assertEquals(null, Atomics.newReference(null).get());
        assertEquals(OBJECT, Atomics.newReference(OBJECT).get());
      }
    
      public void testNewReferenceArray_withLength() throws Exception {
        int length = 42;
        AtomicReferenceArray<String> refArray = Atomics.newReferenceArray(length);
        for (int i = 0; i < length; ++i) {
          assertEquals(null, refArray.get(i));
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. test/intrinsic_atomic.go

    package main
    
    import "sync/atomic"
    
    var x uint32
    
    func atomics() {
    	_ = atomic.LoadUint32(&x)             // ERROR "intrinsic substitution for LoadUint32"
    	atomic.StoreUint32(&x, 1)             // ERROR "intrinsic substitution for StoreUint32"
    	atomic.AddUint32(&x, 1)               // ERROR "intrinsic substitution for AddUint32"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 839 bytes
    - Viewed (0)
  7. internal/pubsub/pubsub.go

    			}
    		}
    		atomic.StoreUint64(&ps.types, uint64(remainTypes))
    		atomic.AddInt32(&ps.numSubscribers, -1)
    	}()
    
    	return nil
    }
    
    // SubscribeJSON - Adds a subscriber to pubsub system and returns results with JSON encoding.
    func (ps *PubSub[T, M]) SubscribeJSON(mask M, subCh chan<- []byte, doneCh <-chan struct{}, filter func(entry T) bool, wg *sync.WaitGroup) error {
    	totalSubs := atomic.AddInt32(&ps.numSubscribers, 1)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 06 16:57:30 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/internal/cpu/cpu_arm64.go

    		{Name: "sha1", Feature: &ARM64.HasSHA1},
    		{Name: "sha2", Feature: &ARM64.HasSHA2},
    		{Name: "sha512", Feature: &ARM64.HasSHA512},
    		{Name: "crc32", Feature: &ARM64.HasCRC32},
    		{Name: "atomics", Feature: &ARM64.HasATOMICS},
    		{Name: "cpuid", Feature: &ARM64.HasCPUID},
    		{Name: "isNeoverse", Feature: &ARM64.IsNeoverse},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 14:08:20 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/BloomFilterStrategies.java

        long bitSize() {
          return (long) data.length() * Long.SIZE;
        }
    
        /**
         * Number of set bits (1s).
         *
         * <p>Note that because of concurrent set calls and uses of atomics, this bitCount is a (very)
         * close *estimate* of the actual number of bits set. It's not possible to do better than an
         * estimate without locking. Note that the number, if not exactly accurate, is *always*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  10. src/internal/cpu/cpu_arm64_hwcap.go

    	ARM64.HasSHA2 = isSet(HWCap, hwcap_SHA2)
    	ARM64.HasCRC32 = isSet(HWCap, hwcap_CRC32)
    	ARM64.HasCPUID = isSet(HWCap, hwcap_CPUID)
    	ARM64.HasSHA512 = isSet(HWCap, hwcap_SHA512)
    
    	// The Samsung S9+ kernel reports support for atomics, but not all cores
    	// actually support them, resulting in SIGILL. See issue #28431.
    	// TODO(elias.naur): Only disable the optimization on bad chipsets on android.
    	ARM64.HasATOMICS = isSet(HWCap, hwcap_ATOMICS) && os != "android"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top