Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for isLocked (0.14 sec)

  1. internal/dsync/drwmutex.go

    // Granted - represents a structure of a granted lock.
    type Granted struct {
    	index   int
    	lockUID string // Locked if set with UID string, unlocked if empty
    }
    
    func (g *Granted) isLocked() bool {
    	return isLocked(g.lockUID)
    }
    
    func isLocked(uid string) bool {
    	return len(uid) > 0
    }
    
    // NewDRWMutex - initializes a new dsync RW mutex.
    func NewDRWMutex(clnt *Dsync, names ...string) *DRWMutex {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/work/TestWorkerLeaseService.groovy

        boolean isAllowedUncontrolledAccessToAnyProject() {
            return false
        }
    
        private WorkerLease workerLease() {
            return new WorkerLease() {
                @Override
                boolean isLocked() {
                    return false
                }
    
                @Override
                boolean isLockedByCurrentThread() {
                    return false
                }
    
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/AccessorsClassPath.kt

                        .get()
                }
    
    
        private
        fun configuredProjectSchemaOf(scriptTarget: Any, classLoaderScope: ClassLoaderScope): TypedProjectSchema? {
            require(classLoaderScope.isLocked) {
                "project.classLoaderScope must be locked before querying the project schema"
            }
            return projectSchemaProvider.schemaFor(scriptTarget)?.takeIf { it.isNotEmpty() }
        }
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 20:25:05 UTC 2024
    - 22K bytes
    - Viewed (0)
  4. cmd/update.go

    	return getModTime(os.Args[0])
    }
    
    // IsDocker - returns if the environment minio is running in docker or
    // not. The check is a simple file existence check.
    //
    // https://github.com/moby/moby/blob/master/daemon/initlayer/setup_unix.go
    // https://github.com/containers/podman/blob/master/libpod/runtime.go
    //
    //	"/.dockerenv":        "file",
    //	"/run/.containerenv": "file",
    func IsDocker() bool {
    	var err error
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/runtime/runtime.go

    }
    
    // detectCRISocketImpl is separated out only for test purposes, DON'T call it directly, use DetectCRISocket instead
    func detectCRISocketImpl(isSocket func(string) bool, knownCRISockets []string) (string, error) {
    	foundCRISockets := []string{}
    
    	for _, socket := range knownCRISockets {
    		if isSocket(socket) {
    			foundCRISockets = append(foundCRISockets, socket)
    		}
    	}
    
    	switch len(foundCRISockets) {
    	case 0:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. pkg/volume/hostpath/host_path.go

    }
    
    type hostPathTypeChecker interface {
    	Exists() bool
    	IsFile() bool
    	MakeFile() error
    	IsDir() bool
    	MakeDir() error
    	IsBlock() bool
    	IsChar() bool
    	IsSocket() bool
    	GetPath() string
    }
    
    type fileTypeChecker struct {
    	path string
    	hu   hostutil.HostUtils
    }
    
    func (ftc *fileTypeChecker) Exists() bool {
    	exists, err := ftc.hu.PathExists(ftc.path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/aether/LegacyRepositorySystemSessionExtender.java

                if (mirror.getLayout() != null && !mirror.getLayout().isEmpty()) {
                    repository.setLayout(original.getLayout());
                }
    
                repository.setBlocked(mirror.isBlocked());
            }
        }
    
        private void injectProxy(ProxySelector selector, List<ArtifactRepository> repositories) {
            if (repositories != null && selector != null) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

            // nothing
          }
        }
    
        void awaitWaiting() {
          while (!isBlocked()) {
            if (getState() == State.TERMINATED) {
              throw new RuntimeException("Thread exited");
            }
            Thread.yield();
          }
        }
    
        private boolean isBlocked() {
          return getState() == Thread.State.WAITING && LockSupport.getBlocker(this) == future;
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

            // nothing
          }
        }
    
        void awaitWaiting() {
          while (!isBlocked()) {
            if (getState() == State.TERMINATED) {
              throw new RuntimeException("Thread exited");
            }
            Thread.yield();
          }
        }
    
        private boolean isBlocked() {
          return getState() == Thread.State.WAITING && LockSupport.getBlocker(this) == future;
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  10. cmd/endpoint.go

    							endpoints[i].Hostname()), endpoints[i].Hostname(), logger.ErrorKind)
    					}
    
    					continue
    				}
    
    				// return err if not Docker or Kubernetes
    				// We use IsDocker() to check for Docker environment
    				// We use IsKubernetes() to check for Kubernetes environment
    				isLocal, err := isLocalHost(endpoints[i].Hostname(),
    					endpoints[i].Port(),
    					globalMinioPort,
    				)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 34.1K bytes
    - Viewed (0)
Back to top