Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for updateLine (0.17 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/work.go

    			if _, ok := f.Syntax.Stmt[i].(*CommentBlock); !ok {
    				break
    			}
    		}
    		f.Syntax.Stmt = append(append(f.Syntax.Stmt[:i:i], stmt), f.Syntax.Stmt[i:]...)
    	} else {
    		f.Go.Version = version
    		f.Syntax.updateLine(f.Go.Syntax, "go", version)
    	}
    	return nil
    }
    
    func (f *WorkFile) AddToolchainStmt(name string) error {
    	if !ToolchainRE.MatchString(name) {
    		return fmt.Errorf("invalid toolchain name %q", name)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    	}
    	if f.Module == nil {
    		f.Module = &Module{
    			Mod:    module.Version{Path: path},
    			Syntax: f.Syntax.addLine(nil, "module", AutoQuote(path)),
    		}
    	} else {
    		f.Module.Mod.Path = path
    		f.Syntax.updateLine(f.Module.Syntax, "module", AutoQuote(path))
    	}
    	return nil
    }
    
    func (f *File) AddComment(text string) {
    	if f.Syntax == nil {
    		f.Syntax = new(FileSyntax)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    						stmt.Line[j+1] = new
    						return new
    					}
    				}
    			}
    		}
    	}
    
    	new := &Line{Token: tokens}
    	x.Stmt = append(x.Stmt, new)
    	return new
    }
    
    func (x *FileSyntax) updateLine(line *Line, tokens ...string) {
    	if line.InBlock {
    		tokens = tokens[1:]
    	}
    	line.Token = tokens
    }
    
    // markRemoved modifies line so that it (and its end-of-line comment, if any)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/OnDemandFileAccessTest.groovy

        }
    
        def "acquires exclusive lock to update file"() {
            def action = {} as Runnable
    
            when:
            lock.updateFile(action)
    
            then:
            !file.exists()
            1 * manager.lock(file, mode(LockMode.Exclusive), "some-lock") >> targetLock
            1 * targetLock.updateFile(action)
            1 * targetLock.close()
            0 * targetLock._
        }
    
        def "acquires exclusive lock to write file"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/AbstractFileLockManagerTest.groovy

            where:
            lockMode << [Exclusive, Shared]
        }
    
        def "updateFile throws integrity exception when not cleanly unlocked file"() {
            given:
            unlockUncleanly()
    
            and:
            def lock = createLock(Exclusive)
    
            when:
            lock.updateFile {}
    
            then:
            thrown FileIntegrityViolationException
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. tests/integration/security/cacert_rotation/main_test.go

    	retry.UntilOrFail(t, func() bool {
    		updateTime, err := getWorkloadCertLastUpdateTime(t, from, istioCtl)
    		if err != nil {
    			t.Logf("failed to get workload cert last update time: %v", err)
    			return false
    		}
    
    		// retry when workload cert is not updated
    		if updateTime.After(lastUpdateTime) {
    			lastUpdateTime = updateTime
    			t.Logf("workload cert is updated, last update time: %v", updateTime)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/OnDemandFileAccess.java

            } finally {
                lock.close();
            }
        }
    
        @Override
        public void updateFile(Runnable action) throws LockTimeoutException, FileIntegrityViolationException {
            FileLock lock = manager.lock(targetFile, mode(FileLockManager.LockMode.Exclusive), displayName);
            try {
                lock.updateFile(action);
            } finally {
                lock.close();
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. pkg/kubelet/container/cache_test.go

    		podID, status := getTestPodIDAndStatus(2)
    		cache.UpdateTime(c.cacheTime)
    		cache.Set(podID, status, nil, c.modified)
    		d := cache.getIfNewerThan(podID, timestamp)
    		assert.Equal(t, c.expected, d != nil, "test[%d]", i)
    	}
    }
    
    func TestGetPodNewerThanWhenPodDoesNotExist(t *testing.T) {
    	cache := newTestCache()
    	cacheTime := time.Now()
    	cache.UpdateTime(cacheTime)
    	podID := types.UID("1234")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 24 20:23:12 UTC 2020
    - 6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                        docList.clear();
                        accessResultList.clear();
    
                        updateTime = systemHelper.getCurrentTimeAsLong() - updateTime;
    
                        final long interval = updateInterval - updateTime;
                        if (interval > 0) {
                            // sleep
                            ThreadUtil.sleep(interval); // 10 sec (default)
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  10. pkg/kubelet/container/cache.go

    // Delete removes the entry of the pod.
    func (c *cache) Delete(id types.UID) {
    	c.lock.Lock()
    	defer c.lock.Unlock()
    	delete(c.pods, id)
    }
    
    // UpdateTime modifies the global timestamp of the cache and notify
    // subscribers if needed.
    func (c *cache) UpdateTime(timestamp time.Time) {
    	c.lock.Lock()
    	defer c.lock.Unlock()
    	c.timestamp = &timestamp
    	// Notify all the subscribers if the condition is met.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 07:37:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top