Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for attach (0.17 sec)

  1. android/guava/src/com/google/common/cache/Striped64.java

          Cell[] as;
          Cell a;
          int n;
          long v;
          if ((as = cells) != null && (n = as.length) > 0) {
            if ((a = as[(n - 1) & h]) == null) {
              if (busy == 0) { // Try to attach new Cell
                Cell r = new Cell(x); // Optimistically create
                if (busy == 0 && casBusy()) {
                  boolean created = false;
                  try { // Recheck under lock
                    Cell[] rs;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

       * the discussion in the {@link #addListener} documentation. All its warnings about heavyweight
       * listeners are also applicable to heavyweight callbacks passed to this method.
       *
       * <p>For a more general interface to attach a completion listener, see {@link #addListener}.
       *
       * <p>This method is similar to {@link java.util.concurrent.CompletableFuture#whenComplete} and
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/Striped64.java

          Cell[] as;
          Cell a;
          int n;
          long v;
          if ((as = cells) != null && (n = as.length) > 0) {
            if ((a = as[(n - 1) & h]) == null) {
              if (busy == 0) { // Try to attach new Cell
                Cell r = new Cell(x); // Optimistically create
                if (busy == 0 && casBusy()) {
                  boolean created = false;
                  try { // Recheck under lock
                    Cell[] rs;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        SettableFuture<String> future2 = SettableFuture.create();
        SettableFuture<String> future3 = SettableFuture.create();
        ListenableFuture<List<String>> compound = allAsList(future1, future2, future3);
    
        // Attach a listener
        SingleCallListener listener = new SingleCallListener();
        compound.addListener(listener, directExecutor());
    
        // Satisfy each input and check the output
        assertFalse(compound.isDone());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        SettableFuture<String> future2 = SettableFuture.create();
        SettableFuture<String> future3 = SettableFuture.create();
        ListenableFuture<List<String>> compound = allAsList(future1, future2, future3);
    
        // Attach a listener
        SingleCallListener listener = new SingleCallListener();
        compound.addListener(listener, directExecutor());
    
        // Satisfy each input and check the output
        assertFalse(compound.isDone());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     * whereToDiffer} produces no observable change in performance. We want to make sure that the array
     * equals implementation is *not* short-circuiting to prevent timing-based attacks. Being fast is
     * only a secondary goal.
     *
     * @author Kurt Alfred Kluever
     */
    public class HashCodeBenchmark {
    
      // Use a statically configured random instance for all of the benchmarks
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     * whereToDiffer} produces no observable change in performance. We want to make sure that the array
     * equals implementation is *not* short-circuiting to prevent timing-based attacks. Being fast is
     * only a secondary goal.
     *
     * @author Kurt Alfred Kluever
     */
    public class HashCodeBenchmark {
    
      // Use a statically configured random instance for all of the benchmarks
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/Quantiles.java

     * passing in unsanitized user data then a malicious user could force it. A light shuffle of the
     * data using an unpredictable seed should normally be enough to thwart this attack.
     *
     * <p>The time taken to compute multiple quantiles on the same dataset using {@link Scale#indexes
     * indexes} is generally less than the total time taken to compute each of them separately, and
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/Striped64.java

          Cell[] as;
          Cell a;
          int n;
          long v;
          if ((as = cells) != null && (n = as.length) > 0) {
            if ((a = as[(n - 1) & h]) == null) {
              if (busy == 0) { // Try to attach new Cell
                Cell r = new Cell(x); // Optimistically create
                if (busy == 0 && casBusy()) {
                  boolean created = false;
                  try { // Recheck under lock
                    Cell[] rs;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

             *
             * In theory, cancel() could execute arbitrary listeners -- bad to do while holding a lock.
             * However, we don't expose currentFuture to users, so they can't attach listeners. And the
             * Future might not even be a ListenableFuture, just a plain Future. That said, similar
             * problems can exist with methods like FutureTask.done(), not to mention slow calls to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
Back to top