Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 35 for isLocked (0.1 seconds)

  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 {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/Monitor.java

       * Returns whether this monitor is occupied by any thread. This method is designed for use in
       * monitoring of the system state, not for synchronization control.
       */
      public boolean isOccupied() {
        return lock.isLocked();
      }
    
      /**
       * Returns whether the current thread is occupying this monitor (has entered more times than it
       * has left).
       */
      public boolean isOccupiedByCurrentThread() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 43.5K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

          }
        }
        return call.messageDone(
          exchange = this,
          requestDone = requestDone && !isSocket,
          responseDone = responseDone && !isSocket,
          socketSinkDone = requestDone && isSocket,
          socketSourceDone = responseDone && isSocket,
          e = e,
        )
      }
    
      fun noRequestBody() {
        call.messageDone(
          exchange = this,
          requestDone = true,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/DistroTestPlugin.java

            boolean isDocker = type.isDocker();
            ElasticsearchDistribution distro = distributions.create(name, d -> {
                d.setArchitecture(architecture);
                d.setType(type);
                if (type == ARCHIVE) {
                    d.setPlatform(platform);
                }
                if (isDocker == false) {
                    d.setBundledJdk(bundledJdk);
                }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Sep 28 21:31:21 GMT 2021
    - 23.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/util/AuthenticationRateLimiter.java

                }
            }
    
            // Check per-IP limit
            if (sourceIp != null) {
                IpAttempts ip = ipAttempts.computeIfAbsent(sourceIp, k -> new IpAttempts());
                if (ip.isBlocked()) {
                    if (ip.getBlockExpiry().isAfter(Instant.now())) {
                        totalAttemptsBlocked.incrementAndGet();
                        totalIpsBlocked.incrementAndGet();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/distribution/RpmElasticsearchDistributionType.java

        @Override
        public String getName() {
            return "rpm";
        }
    
        @Override
        public boolean shouldExtract() {
            return false;
        }
    
        @Override
        public boolean isDocker() {
            return false;
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 838 bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/distribution/DockerCloudElasticsearchDistributionType.java

        DockerCloudElasticsearchDistributionType() {}
    
        @Override
        public String getName() {
            return "dockerCloud";
        }
    
        @Override
        public boolean isDocker() {
            return true;
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Aug 20 19:11:05 GMT 2021
    - 781 bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/distribution/DockerIronBankElasticsearchDistributionType.java

        DockerIronBankElasticsearchDistributionType() {}
    
        @Override
        public String getName() {
            return "dockerIronBank";
        }
    
        @Override
        public boolean isDocker() {
            return true;
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 790 bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/distribution/DockerUbiElasticsearchDistributionType.java

        DockerUbiElasticsearchDistributionType() {}
    
        @Override
        public String getName() {
            return "dockerUbi";
        }
    
        @Override
        public boolean isDocker() {
            return true;
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 775 bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/distribution/DockerCloudEssElasticsearchDistributionType.java

        DockerCloudEssElasticsearchDistributionType() {}
    
        @Override
        public String getName() {
            return "dockerCloudEss";
        }
    
        @Override
        public boolean isDocker() {
            return true;
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Aug 20 19:11:05 GMT 2021
    - 790 bytes
    - Click Count (0)
Back to Top