Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for holdsLock (0.54 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt

      fun clearAllEvents() {
        while (eventSequence.isNotEmpty()) {
          takeEvent()
        }
      }
    
      internal fun logEvent(e: CallEvent) {
        for (lock in forbiddenLocks) {
          assertThat(Thread.holdsLock(lock), lock.toString()).isFalse()
        }
    
        if (enforceOrder) {
          checkForStartEvent(e)
        }
    
        eventsForMatching.offer(e)
        eventSequence.offer(e)
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

    /** Dispatcher is not [Lockable] because we don't want that type in our public API. */
    internal fun Dispatcher.assertLockNotHeld() {
      if (assertionsEnabled && Thread.holdsLock(this)) {
        throw AssertionError("Thread ${Thread.currentThread().name} MUST NOT hold lock on $this")
      }
    }
    
    /**
     * Returns the string "OkHttp" unless the library has been shaded for inclusion in another library,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (1)
  3. guava/src/com/google/common/cache/LocalCache.java

            throws ExecutionException {
          if (!valueReference.isLoading()) {
            throw new AssertionError();
          }
    
          checkState(!Thread.holdsLock(e), "Recursive load of: %s", key);
          // don't consider expiration as we're concurrent with loading
          try {
            V value = valueReference.waitForValue();
            if (value == null) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 11 19:35:11 UTC 2025
    - 148.9K bytes
    - Viewed (0)
Back to top