Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for deleteMin (0.16 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

            """
            when:
            withBuildCache().run "customTask"
            then:
            result.assertTaskNotSkipped(":customTask")
    
            when:
            file("buildSrc/build").deleteDir()
            file("buildSrc/.gradle").deleteDir()
            cleanBuildDir()
    
            withBuildCache().run "customTask"
            then:
            result.groupedOutput.task(":customTask").outcome == "FROM-CACHE"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

                           TF_Status* status) {
      if (unlink(path) != 0)
        TF_SetStatusFromIOError(status, errno, path);
      else
        TF_SetStatus(status, TF_OK, "");
    }
    
    static void DeleteDir(const TF_Filesystem* filesystem, const char* path,
                          TF_Status* status) {
      if (rmdir(path) != 0)
        TF_SetStatusFromIOError(status, errno, path);
      else
        TF_SetStatus(status, TF_OK, "");
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 20:08:23 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. platforms/software/signing/src/integTest/groovy/org/gradle/plugins/signing/SigningPublicationsIntegrationSpec.groovy

                    def ivyRepo = layout.buildDirectory.dir("ivyRepo").get().asFile
                    doLast {
                        m2Repo.deleteDir()
                        ivyRepo.deleteDir()
                    }
                }
                def sign = project.getProperty("sign")
                if (sign == 'skip') {
                    tasks.withType(Sign)*.onlyIf { false }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 09 01:09:32 UTC 2024
    - 26.9K bytes
    - Viewed (0)
Back to top