Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for canTakeLock (0.11 sec)

  1. cmd/local-locker.go

    	lockMap map[string][]lockRequesterInfo
    	lockUID map[string]string // UUID -> resource map.
    }
    
    func (l *localLocker) String() string {
    	return globalEndpoints.Localhost()
    }
    
    func (l *localLocker) canTakeLock(resources ...string) bool {
    	for _, resource := range resources {
    		_, lockTaken := l.lockMap[resource]
    		if lockTaken {
    			return false
    		}
    	}
    	return true
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top