Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 89 for Oplock (0.05 seconds)

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

        Lock myLock = CycleDetectingLockFactory.newInstance(Policies.THROW).newReentrantLock("MyLock");
        lock03.lock();
        myLock.lock();
        lock03.unlock();
    
        PotentialDeadlockException expected =
            assertThrows(PotentialDeadlockException.class, () -> lock01.lock());
        checkMessage(
            expected,
            "MyLock -> OtherOrder.FIRST",
            "OtherOrder.THIRD -> MyLock",
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        Lock myLock = CycleDetectingLockFactory.newInstance(Policies.THROW).newReentrantLock("MyLock");
        lock03.lock();
        myLock.lock();
        lock03.unlock();
    
        PotentialDeadlockException expected =
            assertThrows(PotentialDeadlockException.class, () -> lock01.lock());
        checkMessage(
            expected,
            "MyLock -> OtherOrder.FIRST",
            "OtherOrder.THIRD -> MyLock",
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  3. internal/lru/lru.go

    // key was contained.
    func (c *LRU[K, V]) Remove(key K) bool {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if ent, ok := c.items[key]; ok {
    		c.removeElement(ent)
    		return true
    	}
    	return false
    }
    
    // RemoveOldest removes the oldest item from the cache.
    func (c *LRU[K, V]) RemoveOldest() (key K, value V, ok bool) {
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if ent := c.evictList.Back(); ent != nil {
    		c.removeElement(ent)
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     *
     * <ul>
     *   <li>for an unnested {@code lock()} and {@code unlock()}, a cycle detecting lock takes 38ns as
     *       opposed to the 24ns taken by a plain lock.
     *   <li>for nested locking, the cost increases with the depth of the nesting:
     *       <ul>
     *         <li>2 levels: average of 64ns per lock()/unlock()
     *         <li>3 levels: average of 77ns per lock()/unlock()
     *         <li>4 levels: average of 99ns per lock()/unlock()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 36K bytes
    - Click Count (0)
  5. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/KotlinSourceParser.kt

            get() = PrintingMessageCollector(System.out, MessageRenderer.PLAIN_RELATIVE_PATHS, false)
    
        fun <T : Any> mapParsedKotlinFiles(vararg sourceRoots: File, block: (KtFile) -> T): List<T> =
            withParsedKotlinSource(sourceRoots.toList()) { ktFiles ->
                ktFiles.map(block)
            }
    
        fun parseSourceRoots(sourceRoots: List<File>, compilationClasspath: List<File>): ParsedKotlinFiles =
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 18 05:37:07 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  6. scripts/doc_parsing_utils.py

    
    def replace_multiline_code_block(
        block_a: MultilineCodeBlockInfo, block_b: MultilineCodeBlockInfo
    ) -> list[str]:
        """
        Replace multiline code block `a` with block `b` leaving comments intact.
    
        Syntax of comments depends on the language of the code block.
        Raises ValueError if the blocks are not compatible (different languages or different number of lines).
        """
    
        start_line = block_a["start_line_no"]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 23.5K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainBeforeHookTest.java

            // during the process, though we can't directly test the lock state
    
            // When
            try {
                curtainBeforeHook.processDBFluteSystem();
    
                // Then - if we get here without exception, the unlock/lock worked
                DfFinalTimeZoneProvider provider = getDBFluteSystemTimeZoneProvider();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  8. docs/en/docs/css/custom.css

    a[data-external-link]:not(:has(img)):not(.no-link-icon):not(.announce-link) {
      /* For right to left languages */
      direction: ltr;
      display: inline-block;
    }
    
    a[data-external-link]:not(:has(img)):not(.no-link-icon):not(.announce-link)::after {
      content: "";
      display: inline-block;
      width: 0.75em;
      height: 0.75em;
      margin-left: 0.25em;
      vertical-align: middle;
      opacity: 0.55;
      background: currentColor;
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 13:56:46 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  9. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/runtimes/CheckTargetRuntimes.kt

                    val lines = listOf("""
                        Failed to automatically fix project build files.
                        Make sure each project has a gradleModule.computedRuntimes block directly below the dependencies block:
    
                        ```
                        dependencies {
                            // ...
                        }
    
                        gradleModule {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Mar 11 22:40:18 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

          }
        }
    
        @Override
        public void signal() {
          lock.lock();
          try {
            condition.signal();
          } finally {
            lock.unlock();
          }
        }
    
        @Override
        public void signalAll() {
          lock.lock();
          try {
            condition.signalAll();
          } finally {
            lock.unlock();
          }
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
Back to Top