Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for isHeldByCurrentThread (0.32 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        if (assertionsEnabled && !taskRunner.lock.isHeldByCurrentThread) {
          throw AssertionError("Thread ${Thread.currentThread().name} MUST hold lock on $this")
        }
      }
    
      @Suppress("NOTHING_TO_INLINE")
      internal inline fun Any.assertThreadDoesntHoldLock() {
        if (assertionsEnabled && taskRunner.lock.isHeldByCurrentThread) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

      OkHttpClient::class.java.name.removePrefix("okhttp3.").removeSuffix("Client")
    
    @Suppress("NOTHING_TO_INLINE")
    internal inline fun ReentrantLock.assertHeld() {
      if (assertionsEnabled && !this.isHeldByCurrentThread) {
        throw AssertionError("Thread ${Thread.currentThread().name} MUST hold lock on $this")
      }
    }
    
    @Suppress("NOTHING_TO_INLINE")
    internal inline fun Any.assertThreadHoldsLock() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

        @Override
        public LockGraphNode getLockGraphNode() {
          return lockGraphNode;
        }
    
        @Override
        public boolean isAcquiredByCurrentThread() {
          return isHeldByCurrentThread();
        }
    
        ///// Overridden ReentrantLock methods. /////
    
        @Override
        public void lock() {
          aboutToAcquire(this);
          try {
            super.lock();
          } finally {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LocalCache.java

                  return true;
                }
                return false;
              }
            }
    
            return false;
          } finally {
            unlock();
            if (!isHeldByCurrentThread()) { // don't clean up inside of put
              postWriteCleanup();
            }
          }
        }
    
        @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top