Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for flag (0.17 sec)

  1. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      }
    
      //     /**
      //      * Spin-waits up to LONG_DELAY_MS until flag becomes true.
      //      */
      //     public void await(AtomicBoolean flag) {
      //         await(flag, LONG_DELAY_MS);
      //     }
    
      //     /**
      //      * Spin-waits up to the specified timeout until flag becomes true.
      //      */
      //     public void await(AtomicBoolean flag, long timeoutMillis) {
      //         long startTime = System.nanoTime();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      }
    
      //     /**
      //      * Spin-waits up to LONG_DELAY_MS until flag becomes true.
      //      */
      //     public void await(AtomicBoolean flag) {
      //         await(flag, LONG_DELAY_MS);
      //     }
    
      //     /**
      //      * Spin-waits up to the specified timeout until flag becomes true.
      //      */
      //     public void await(AtomicBoolean flag, long timeoutMillis) {
      //         long startTime = System.nanoTime();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

     * finalization to happen. However, a call to {@code System.gc()} is specified to be no more than a
     * hint, so this technique may fail at the whim of the JDK implementation, for example if a user
     * specified the JVM flag {@code -XX:+DisableExplicitGC}. But in practice, it works very well for
     * ordinary tests.
     *
     * <p>Failure of the expected event to occur within an implementation-defined "reasonable" time
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * finalization to happen. However, a call to {@code System.gc()} is specified to be no more than a
     * hint, so this technique may fail at the whim of the JDK implementation, for example if a user
     * specified the JVM flag {@code -XX:+DisableExplicitGC}. But in practice, it works very well for
     * ordinary tests.
     *
     * <p>Failure of the expected event to occur within an implementation-defined "reasonable" time
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  5. android/pom.xml

              </plugins>
          </build>
        </profile>
        <profile>
          <!--
              Passes JDK 11-12-specific `no-module-directories` flag to Javadoc tool,
              which is required to make symbol search work correctly in the generated
              pages.
    
              This flag does not exist on 9-10 and 13+ (https://bugs.openjdk.java.net/browse/JDK-8215582).
    
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

              suite.addTest(new GeneratedMonitorTest(method, scenario, fair, null, expectedOutcome));
            }
          }
        }
      }
    
      /** A guard that encapsulates a simple, mutable boolean flag. */
      static class FlagGuard extends Monitor.Guard {
    
        private boolean satisfied;
    
        protected FlagGuard(Monitor monitor) {
          super(monitor);
        }
    
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractService.java

          if (snapshot.shutdownWhenStartupFinishes) {
            snapshot = new StateSnapshot(STOPPING);
            // We don't call listeners here because we already did that when we set the
            // shutdownWhenStartupFinishes flag.
            doStop();
          } else {
            snapshot = new StateSnapshot(RUNNING);
            enqueueRunningEvent();
          }
        } finally {
          monitor.leave();
          dispatchListenerEvents();
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 20.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

              suite.addTest(new GeneratedMonitorTest(method, scenario, fair, null, expectedOutcome));
            }
          }
        }
      }
    
      /** A guard that encapsulates a simple, mutable boolean flag. */
      static class FlagGuard extends Monitor.Guard {
    
        private boolean satisfied;
    
        protected FlagGuard(Monitor monitor) {
          super(monitor);
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        when(service.awaitTermination(HALF_SECOND_NANOS, NANOSECONDS))
            .thenThrow(new InterruptedException());
    
        final AtomicBoolean terminated = new AtomicBoolean();
        // we need to keep this in a flag because t.isInterrupted() returns false after t.join()
        final AtomicBoolean interrupted = new AtomicBoolean();
        // we need to use another thread because it will be interrupted and thus using
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (3)
  10. guava/src/com/google/common/base/Predicates.java

                && pattern.flags() == that.pattern.flags();
          }
          return false;
        }
    
        @Override
        public String toString() {
          String patternString =
              MoreObjects.toStringHelper(pattern)
                  .add("pattern", pattern.pattern())
                  .add("pattern.flags", pattern.flags())
                  .toString();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top