Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for startCountdownTimer (0.4 sec)

  1. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/Time.java

            return new DefaultTimer(TimeSource.SYSTEM);
        }
    
        public static CountdownTimer startCountdownTimer(long timeoutMillis) {
            return new DefaultCountdownTimer(TimeSource.SYSTEM, timeoutMillis, TimeUnit.MILLISECONDS);
        }
    
        public static CountdownTimer startCountdownTimer(long timeout, TimeUnit unit) {
            return new DefaultCountdownTimer(TimeSource.SYSTEM, timeout, unit);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/LegacyDaemon.groovy

            }
        }
    
        protected void waitForState(State state) {
            def timer = Time.startCountdownTimer(STATE_CHANGE_TIMEOUT)
            def lastLogState = logFileProbe.currentState
            while (!timer.hasExpired() && lastLogState != state) {
                Thread.sleep(200)
                lastLogState = logFileProbe.currentState
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonStopClient.java

                    connection.stop();
                }
            }
        }
    
        /**
         * Stops all daemons, blocking until all have completed.
         */
        public void stop() {
            CountdownTimer timer = Time.startCountdownTimer(STOP_TIMEOUT_SECONDS, TimeUnit.SECONDS);
            final Set<String> seen = new HashSet<String>();
    
            ExplainingSpec<DaemonContext> spec = new ExplainingSpec<DaemonContext>() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/TestableDaemon.groovy

            this.registryProbe = new DaemonRegistryStateProbe(registry, context)
        }
    
        protected void waitForState(State state) {
            def timer = Time.startCountdownTimer(STATE_CHANGE_TIMEOUT)
            def lastRegistryState = registryProbe.currentState
            def lastLogState = logFileProbe.currentState
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/project/antbuilder/AntBuilderMemoryLeakTest.groovy

            Class[] classes = new Class[1]
    
            when:
            int i = 0
            // time out after 10 minutes
            CountdownTimer timer = Time.startCountdownTimer(10, TimeUnit.MINUTES)
            try {
                while (!timer.hasExpired()) {
                    builder.withClasspath([new File("foo$i")]).execute {
    
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 26 09:30:27 UTC 2018
    - 3.6K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiIntegrationTest.groovy

            // Wait for the tooling API to start the build
            def startMarkerFile = projectDir.file("start.marker")
            def foundStartMarker = startMarkerFile.exists()
    
            CountdownTimer startTimer = Time.startCountdownTimer(startTimeoutMs)
            while (handle.running && !foundStartMarker) {
                if (startTimer.hasExpired()) {
                    throw new Exception("timeout waiting for start marker")
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ExclusiveCacheAccessingWorker.java

            try {
                cacheAccess.useCache(new Runnable() {
                    @Override
                    public void run() {
                        CountdownTimer timer = Time.startCountdownTimer(maximumLockingTimeMillis, TimeUnit.MILLISECONDS);
                        if (updateOperation != null) {
                            failureHandler.onExecute(updateOperation);
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DefaultDaemonConnector.java

            if (!compatibleCanceledDaemons.isEmpty()) {
                LOGGER.info(DaemonMessages.WAITING_ON_CANCELED);
                CountdownTimer timer = Time.startCountdownTimer(CANCELED_WAIT_TIMEOUT);
                while (connection == null && !timer.hasExpired()) {
                    try {
                        sleep(200);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/ExponentialBackoff.java

            this.timeoutMs = timeoutMs;
            this.signal = signal;
            this.slotTime = slotTime;
            restartTimer();
        }
    
        public void restartTimer() {
            timer = Time.startCountdownTimer(timeoutMs);
        }
    
        /**
         * Retries the given query until it returns a 'sucessful' result.
         *
         * @param query which returns non-null value when successful.
         * @param <T> the result type.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/timeout/impl/DefaultTimeoutHandler.java

                        thread.interrupt();
                        logStacktraceTimer = Time.startCountdownTimer(slowStopLogStacktraceFrequency());
                        scheduledFuture = executor.schedule(this::onAfterTimeoutCheck, postTimeoutCheckFrequency(), TimeUnit.MILLISECONDS);
                    }
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top