Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for lockNames (0.14 sec)

  1. src/runtime/lockrank.go

    	lockRankTestRInternal
    )
    
    // lockRankLeafRank is the rank of lock that does not have a declared rank,
    // and hence is a leaf lock.
    const lockRankLeafRank lockRank = 1000
    
    // lockNames gives the names associated with each of the above ranks.
    var lockNames = []string{
    	lockRankSysmon:          "sysmon",
    	lockRankScavenge:        "scavenge",
    	lockRankForcegc:         "forcegc",
    	lockRankDefer:           "defer",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. src/runtime/mklockrank.go

    // and hence is a leaf lock.
    const lockRankLeafRank lockRank = 1000
    `)
    
    	// Create string table.
    	fmt.Fprintf(w, `
    // lockNames gives the names associated with each of the above ranks.
    var lockNames = []string{
    `)
    	for _, rank := range topo {
    		if !isPseudo(rank) {
    			fmt.Fprintf(w, "\t%s: %q,\n", cname(rank), rank)
    		}
    	}
    	fmt.Fprintf(w, `}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/telemetry/internal/upload/upload.go

    		return false
    	}
    
    	// Lock the upload, to prevent duplicate uploads.
    	{
    		lockname := newname + ".lock"
    		lockfile, err := os.OpenFile(lockname, os.O_CREATE|os.O_EXCL, 0666)
    		if err != nil {
    			u.logger.Printf("Failed to acquire lock %s: %v", lockname, err)
    			return false
    		}
    		_ = lockfile.Close()
    		defer os.Remove(lockname)
    	}
    
    	endpoint := u.uploadServerURL + "/" + fdate
    	b := bytes.NewReader(buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/dom_test.go

    func generateDominatorMap(fut fun) map[string]string {
    	blockNames := map[*Block]string{}
    	for n, b := range fut.blocks {
    		blockNames[b] = n
    	}
    	referenceDom := dominatorsSimple(fut.f)
    	doms := make(map[string]string)
    	for _, b := range fut.f.Blocks {
    		if d := referenceDom[b.ID]; d != nil {
    			doms[blockNames[b]] = blockNames[d]
    		}
    	}
    	return doms
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. cmd/shared-lock.go

    	retryInterval: time.Minute,
    })
    
    type sharedLock struct {
    	lockContext chan LockContext
    }
    
    func (ld sharedLock) backgroundRoutine(ctx context.Context, objAPI ObjectLayer, lockName string) {
    	for {
    		locker := objAPI.NewNSLock(minioMetaBucket, lockName)
    		lkctx, err := locker.GetLock(ctx, sharedLockTimeout)
    		if err != nil {
    			continue
    		}
    
    	keepLock:
    		for {
    			select {
    			case <-ctx.Done():
    				return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 13 09:26:38 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

        return policy == Policies.DISABLED
            ? new ReentrantLock(fair)
            : new CycleDetectingReentrantLock(new LockGraphNode(lockName), fair);
      }
    
      /** Equivalent to {@code newReentrantReadWriteLock(lockName, false)}. */
      public ReentrantReadWriteLock newReentrantReadWriteLock(String lockName) {
        return newReentrantReadWriteLock(lockName, false);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

        return policy == Policies.DISABLED
            ? new ReentrantLock(fair)
            : new CycleDetectingReentrantLock(new LockGraphNode(lockName), fair);
      }
    
      /** Equivalent to {@code newReentrantReadWriteLock(lockName, false)}. */
      public ReentrantReadWriteLock newReentrantReadWriteLock(String lockName) {
        return newReentrantReadWriteLock(lockName, false);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  8. pilot/pkg/leaderelection/leaderelection_test.go

    	expectLeader bool,
    	client kubernetes.Interface, fns ...func(stop <-chan struct{}),
    ) (*LeaderElection, chan struct{}) {
    	t.Helper()
    	lockName := testLock
    	if perRevision {
    		lockName += "-" + revision
    	}
    	l := &LeaderElection{
    		namespace:      "ns",
    		name:           name,
    		electionID:     lockName,
    		client:         client,
    		revision:       revision,
    		remote:         remote,
    		defaultWatcher: watcher,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. misc/ios/go_ios_exec.go

    	//
    	// The lock file is never deleted, to avoid concurrent locks on distinct
    	// files with the same path.
    	lockName := filepath.Join(os.TempDir(), "go_ios_exec-"+deviceID+".lock")
    	lock, err = os.OpenFile(lockName, os.O_CREATE|os.O_RDONLY, 0666)
    	if err != nil {
    		return 1, err
    	}
    	if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil {
    		return 1, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 23.4K bytes
    - Viewed (0)
Back to top