Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 142 for unlocks (0.16 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

    import java.util.concurrent.ScheduledExecutorService;
    import java.util.concurrent.Semaphore;
    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.locks.Condition;
    import java.util.concurrent.locks.Lock;
    import java.util.concurrent.locks.ReentrantLock;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for {@link Uninterruptibles}.
     *
     * @author Anthony Zana
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  2. docs/smb3-features/04-directory-leasing-design.md

                }
            } finally {
                lock.writeLock().unlock();
            }
        }
        
        public List<FileInfo> getChildren() {
            lock.readLock().lock();
            try {
                lastAccessTime = System.currentTimeMillis();
                return new ArrayList<>(children.values());
            } finally {
                lock.readLock().unlock();
            }
        }
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                lock.writeLock().unlock();
            }
        }
    
        /**
         * Release all leases
         */
        public void releaseAll() {
            lock.writeLock().lock();
            try {
                log.info("Releasing all {} leases", leases.size());
                leases.clear();
                pathToLease.clear();
            } finally {
                lock.writeLock().unlock();
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                final byte[] sig = mac.doFinal();
                System.arraycopy(sig, 0, data, offset + SIGNATURE_OFFSET, SIGNATURE_LENGTH);
            } finally {
                this.signingLock.unlock();
            }
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.internal.SMBSigningDigest#verify(byte[], int, int, int, jcifs.internal.CommonServerMessageBlock)
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/Striped.java

         * Iterable<Lock> locks = stripedLock.bulkGet(keys);
         * for (Lock lock : locks) {
         *   lock.lock();
         * }
         * operation();
         * for (Lock lock : locks) {
         *   lock.unlock();
         * }
         *
         * If we only held the int[] stripes, translating it on the fly to L's, the original locks might
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

            try {
              currentFuture.cancel(mayInterruptIfRunning);
            } finally {
              lock.unlock();
            }
          }
    
          @Override
          public boolean isCancelled() {
            lock.lock();
            try {
              return currentFuture.isCancelled();
            } finally {
              lock.unlock();
            }
          }
        }
    
        @Override
        final Cancellable schedule(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.7K bytes
    - Viewed (0)
  7. docs/contribute/concurrency.md

    Similarly, the reader thread must never block on writing because this can deadlock the connection. Consider a client and server that both violate this rule. If you get unlucky, they could fill up their TCP buffers (so that writes block) and then use their reader threads to write a frame. Nobody is reading on either end, and the buffers are never drained.
    
    #### Do-stuff-later pool
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:35:36 UTC 2022
    - 7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        /** LM compatibility level */
        int LM_COMPATIBILITY = Config.getInt("jcifs.smb1.smb.lmCompatibility", 3);
    
        /** No flags set */
        int FLAGS_NONE = 0x00;
        /** Lock and read write and unlock flag */
        int FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK = 0x01;
        /** Receive buffer posted flag */
        int FLAGS_RECEIVE_BUFFER_POSTED = 0x02;
        /** Path names are caseless flag */
        int FLAGS_PATH_NAMES_CASELESS = 0x08;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

            try {
              currentFuture.cancel(mayInterruptIfRunning);
            } finally {
              lock.unlock();
            }
          }
    
          @Override
          public boolean isCancelled() {
            lock.lock();
            try {
              return currentFuture.isCancelled();
            } finally {
              lock.unlock();
            }
          }
        }
    
        @Override
        final Cancellable schedule(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  10. internal/lru/lru.go

    func (c *LRU[K, V]) Contains(key K) (ok bool) {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	_, ok = c.items[key]
    	return ok
    }
    
    // Peek returns the key value (or undefined if not found) without updating
    // the "recently used"-ness of the key.
    func (c *LRU[K, V]) Peek(key K) (value V, ok bool) {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	var ent *Entry[K, V]
    	if ent, ok = c.items[key]; ok {
    		// Expired item check
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top