Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for deleteMin (0.2 sec)

  1. src/runtime/time.go

    	}
    	t.unlock()
    	if !async && t.isChan {
    		unlock(&t.sendLock)
    		if timerchandrain(t.hchan()) {
    			pending = true
    		}
    	}
    
    	return pending
    }
    
    // deleteMin removes timer 0 from ts.
    // ts must be locked.
    func (ts *timers) deleteMin() {
    	assertLockHeld(&ts.mu)
    	t := ts.heap[0].timer
    	if t.ts != ts {
    		throw("wrong timers")
    	}
    	t.ts = nil
    	last := len(ts.heap) - 1
    	if last > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/RetryConditions.groovy

                    if (!FILES_TO_PRESERVE.contains(it.name)) {
                        it.deleteDir()
                    }
                }
            } else if (specification.hasProperty("testDirectory")) {
                specification.testDirectory.listFiles().each {
                    if (!FILES_TO_PRESERVE.contains(it.name)) {
                        it.deleteDir()
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/LoggingIntegrationTest.groovy

            resources.maybeCopy('LoggingIntegrationTest/logging')
            TestFile loggingDir = testDirectory
            loggingDir.file("buildSrc/build/.gradle").deleteDir()
            loggingDir.file("nestedBuild/buildSrc/.gradle").deleteDir()
    
            String initScript = new File(loggingDir, 'init.gradle').absolutePath
            List<String> allArgs = logLevel.args + ['-I', initScript]
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionIntegrationTest.groovy

            make("A")
            succeeds("cacheable")
            make("B")
            // populate the cache
            withBuildCache().run("cacheable")
    
            when:
            gradleUserHome.deleteDir() // nuke the file snapshot cache
            resources.deleteDir().mkdirs()
            succeeds("clean")
            and:
            // Building with the resources seen in the opposite order
            // shouldn't make a difference
            make("B")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/pod.go

    			if _, f := pmap[port.Name]; !f {
    				pmap[port.Name] = uint32(port.ContainerPort)
    			}
    		}
    	}
    	return pmap
    }
    
    // deleteIP returns true if the pod and ip are really deleted.
    func (pc *PodCache) deleteIP(ip string, podKey types.NamespacedName) bool {
    	pc.Lock()
    	defer pc.Unlock()
    	if pc.podsByIP[ip].Contains(podKey) {
    		sets.DeleteCleanupLast(pc.podsByIP, ip, podKey)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Install.java

            return osName.contains("windows");
        }
    
        private boolean deleteDir(File dir) {
            if (dir.isDirectory()) {
                String[] children = dir.list();
                if (children != null) {
                    for (int i = 0; i < children.length; i++) {
                        boolean success = deleteDir(new File(dir, children[i]));
                        if (!success) {
                            return false;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalInputsIntegrationTest.groovy

        def "incremental task is informed that all input files are 'out-of-date' when all output files have been removed"() {
            given:
            previousExecution()
    
            when:
            file("outputs").deleteDir()
    
            then:
            executesNonIncrementally()
        }
    
        def "incremental task is informed that all input files are 'out-of-date' when Task.upToDate() is false"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 23 12:52:29 UTC 2022
    - 27.8K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/internal/initialization/loadercache/ClassLoadersCachingIntegrationTest.groovy

            createJarWithProperties("lib/foo.jar")
            buildFile << """
                buildscript { dependencies { classpath files("lib") }}
            """
    
            when:
            run()
            assert file("lib").deleteDir()
            run()
    
            then:
            notCached
    
            when:
            run()
    
            then:
            isCached()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 19 20:09:56 UTC 2022
    - 10.6K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy

            // delete .gradle dir to simulate this
            when:
            file('.gradle').assertIsDir().deleteDir()
            outputAFile.makeOlder()
            outputBFile.makeOlder()
            succeeds "b"
    
            then:
            result.assertTasksNotSkipped(":a", ":b")
    
            when:
            file('build/b').deleteDir()
            succeeds "b"
    
            then:
            result.assertTasksNotSkipped(":b")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/locking/LockFileReaderWriterTest.groovy

            lockFileReaderWriter = new LockFileReaderWriter(resolver, context, lockFile, listener)
        }
    
        def 'writes a unique lock file'() {
            when:
            lockDir.deleteDir()
            lockFileReaderWriter.writeUniqueLockfile([a: ['foo', 'bar'], b: ['foo'], c: []])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top