Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for assertThreadDoesntHoldLock (0.12 sec)

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

        taskRunner.assertThreadDoesntHoldLock()
    
        taskRunner.lock.withLock {
          check(currentTask == TestThreadSerialTask)
          nanoTime = newTime
          yieldUntil(ResumePriority.AfterOtherTasks)
        }
      }
    
      /** Confirm all tasks have completed. Used by the test thread only. */
      fun assertNoMoreTasks() {
        taskRunner.assertThreadDoesntHoldLock()
    
        taskRunner.lock.withLock {
    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/connection/RealCall.kt

    import okhttp3.Interceptor
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.internal.assertHeld
    import okhttp3.internal.assertNotHeld
    import okhttp3.internal.assertThreadDoesntHoldLock
    import okhttp3.internal.cache.CacheInterceptor
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.connection.Locks.withLock
    import okhttp3.internal.http.BridgeInterceptor
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

        throw AssertionError("Thread ${Thread.currentThread().name} MUST NOT hold lock on $this")
      }
    }
    
    @Suppress("NOTHING_TO_INLINE")
    internal inline fun Any.assertThreadDoesntHoldLock() {
      if (assertionsEnabled && Thread.holdsLock(this)) {
        throw AssertionError("Thread ${Thread.currentThread().name} MUST NOT hold lock on $this")
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

    import java.util.concurrent.locks.Condition
    import java.util.concurrent.locks.ReentrantLock
    import okhttp3.internal.EMPTY_BYTE_ARRAY
    import okhttp3.internal.EMPTY_HEADERS
    import okhttp3.internal.assertThreadDoesntHoldLock
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.connection.Locks.withLock
    import okhttp3.internal.http2.ErrorCode.REFUSED_STREAM
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top