Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 474 for lock1 (0.04 sec)

  1. platforms/core-runtime/messaging/src/integTest/groovy/org/gradle/internal/remote/UnicastMessagingIntegrationTest.groovy

            ObjectConnection getConnection() {
                lock.lock()
                try {
                    while (connection == null) {
                        condition.await()
                    }
                    return connection
                } finally {
                    lock.unlock()
                }
            }
    
            @Override
            void stop() {
                lock.lock()
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:43 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. cmd/metacache-manager.go

    func (m *metacacheManager) deleteBucketCache(bucket string) {
    	m.init.Do(m.initManager)
    	m.mu.Lock()
    	b, ok := m.buckets[bucket]
    	if !ok {
    		m.mu.Unlock()
    		return
    	}
    	delete(m.buckets, bucket)
    	m.mu.Unlock()
    
    	// Since deletes may take some time we try to do it without
    	// holding lock to m all the time.
    	b.mu.Lock()
    	defer b.mu.Unlock()
    	for k, v := range b.caches {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/HealthExpirationStrategy.java

    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import java.util.ArrayList;
    import java.util.List;
    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReentrantLock;
    
    import static org.gradle.launcher.daemon.server.expiry.DaemonExpirationStatus.DO_NOT_EXPIRE;
    import static org.gradle.launcher.daemon.server.expiry.DaemonExpirationStatus.GRACEFUL_EXPIRE;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java

                bufferIndex += this.unlocks[ i ].decode(buffer, bufferIndex, buffer.length);
            }
    
            for ( int i = 0; i < this.locks.length; i++ ) {
                this.locks[ i ] = createLockRange();
                bufferIndex += this.locks[ i ].decode(buffer, bufferIndex, buffer.length);
            }
    
            return start - bufferIndex;
        }
    
    
        /**
         * @return
         */
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

       * be removed from the execution schedule.
       */
      fun cancelAll() {
        lock.assertNotHeld()
    
        taskRunner.lock.withLock {
          if (cancelAllAndDecide()) {
            taskRunner.kickCoordinator(this)
          }
        }
      }
    
      fun shutdown() {
        lock.assertNotHeld()
    
        taskRunner.lock.withLock {
          shutdown = true
          if (cancelAllAndDecide()) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/runtime/cpuprof.go

    	lock(&cpuprof.lock)
    	log := cpuprof.log
    	unlock(&cpuprof.lock)
    	readMode := profBufBlocking
    	if GOOS == "darwin" || GOOS == "ios" {
    		readMode = profBufNonBlocking // For #61768; on Darwin notes are not async-signal-safe.  See sigNoteSetup in os_darwin.go.
    	}
    	data, tags, eof := log.read(readMode)
    	if len(data) == 0 && eof {
    		lock(&cpuprof.lock)
    		cpuprof.log = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. src/runtime/mklockrank.go

    // (or, if b is held, a cannot be acquired).
    //
    // "NONE < a" means no locks may be held when a is acquired.
    //
    // If a lock is not given a rank, then it is assumed to be a leaf
    // lock, which means no other lock can be acquired while it is held.
    // Therefore, leaf locks do not need to be given an explicit rank.
    //
    // Ranks in all caps are pseudo-nodes that help define order, but do
    // not actually define a rank.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java

        return impl.get(numStripes);
      }
    
      // a place to put the locks in sizeOfPopulatedStriped so they don't get GC'd before we measure
      final List<Lock> locks = new ArrayList<>(numStripes);
    
      @Footprint
      Object sizeOfPopulatedStriped() {
        locks.clear();
        Striped<Lock> striped = impl.get(numStripes);
        for (int i : stripes) {
          locks.add(striped.getAt(i));
        }
        return striped;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.concurrent.Semaphore;
    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReadWriteLock;
    import java.util.concurrent.locks.ReentrantLock;
    import java.util.concurrent.locks.ReentrantReadWriteLock;
    import junit.framework.TestCase;
    
    /**
     * Tests for Striped.
     *
     * @author Dimitris Andreou
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.concurrent.Semaphore;
    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReadWriteLock;
    import java.util.concurrent.locks.ReentrantLock;
    import java.util.concurrent.locks.ReentrantReadWriteLock;
    import junit.framework.TestCase;
    
    /**
     * Tests for Striped.
     *
     * @author Dimitris Andreou
     */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.4K bytes
    - Viewed (0)
Back to top