Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for Races (0.02 sec)

  1. doc/go_mem.html

    to avoid data races.
    In the absence of data races, Go programs behave as if all the goroutines
    were multiplexed onto a single processor.
    This property is sometimes referred to as DRF-SC: data-race-free programs
    execute in a sequentially consistent manner.
    </p>
    
    <p>
    While programmers should write Go programs without data races,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Mar 04 15:54:42 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/SuppliersTest.java

                  }
                }
                return waitingThreads;
              }
    
              @Override
              @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
              public Boolean get() {
                // Check that this method is called exactly once, by the first
                // thread to synchronize.
                long t0 = System.nanoTime();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/SuppliersTest.java

                  }
                }
                return waitingThreads;
              }
    
              @Override
              @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
              public Boolean get() {
                // Check that this method is called exactly once, by the first
                // thread to synchronize.
                long t0 = System.nanoTime();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-rebalance.go

    							NoAuditLog:        true,
    						})
    					// This can happen when rebalance stop races with ongoing rebalance workers.
    					// These rebalance failures can be ignored.
    					if err != nil {
    						// This can happen when rebalance stop races with ongoing rebalance workers.
    						// These rebalance failures can be ignored.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

        Thread t =
            newStartedThread(
                new CheckedRunnable() {
                  @Override
                  @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
                  public void realRun() {
                    while (!at.compareAndSet(2.0, 3.0)) {
                      Thread.yield();
                    }
                  }
                });
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

          yieldUntil { nanoTime >= sleepUntil }
        }
      }
    
      /**
       * Artificially stall until manually resumed by the test thread with [runTasks]. Use this to
       * simulate races in tasks that doesn't have a deterministic sequence.
       */
      fun yield() {
        taskRunner.assertThreadDoesntHoldLock()
        taskRunner.lock.withLock {
          yieldUntil()
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/Striped64.java

      @CheckForNull transient volatile Cell[] cells;
    
      /**
       * Base value, used mainly when there is no contention, but also as a fallback during table
       * initialization races. Updated via CAS.
       */
      transient volatile long base;
    
      /** Spinlock (locked via CAS) used when resizing and/or creating Cells. */
      transient volatile int busy;
    
      /** Package-private default constructor */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 17:55:55 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

         * is held in the Sync state, and the lock is released whenever the state changes to {@link
         * #COMPLETED}, {@link #CANCELLED}, or {@link #INTERRUPTED}
         *
         * <p>To avoid races between threads doing release and acquire, we transition to the final state
         * in two steps. One thread will successfully CAS from RUNNING to COMPLETING, that thread will
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. cmd/prepare-storage.go

    		if err == nil && format != nil {
    			// Assign globalDeploymentID() on first run for the
    			// minio server managing the first disk
    			globalDeploymentIDPtr.Store(&format.ID)
    
    			// Set the deployment ID here to avoid races.
    			xhttp.SetDeploymentID(format.ID)
    			xhttp.SetMinIOVersion(Version)
    		}
    	}()
    
    	format, err = connectLoadInitFormats(verbose, firstDisk, storageDisks, endpoints, poolCount, setCount, setDriveCount, deploymentID)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 11.1K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          },
        )
      }
    
      /**
       * Holding the lock of the connection being added or removed when mutating this, and check its
       * [RealConnection.noNewExchanges] property. This defends against races where a connection is
       * simultaneously adopted and removed.
       */
      private val connections = ConcurrentLinkedQueue<RealConnection>()
    
      init {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top