Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for holdsLock (0.16 sec)

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

      fun clearAllEvents() {
        while (eventSequence.isNotEmpty()) {
          takeEvent()
        }
      }
    
      private fun logEvent(e: CallEvent) {
        for (lock in forbiddenLocks) {
          assertThat(Thread.holdsLock(lock), lock.toString()).isFalse()
        }
    
        if (enforceOrder) {
          checkForStartEvent(e)
        }
    
        eventSequence.offer(e)
      }
    
      private fun checkForStartEvent(e: CallEvent) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9K bytes
    - Viewed (1)
  2. android/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) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  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) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top