Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for assertThreadHoldsLock (0.16 sec)

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

            override fun coordinatorNotify(taskRunner: TaskRunner) {
              taskRunner.assertThreadHoldsLock()
              check(waitingCoordinatorTask != null)
    
              // Queue a task to resume the waiting coordinator.
              serialTaskQueue +=
                object : SerialTask {
                  override fun start() {
                    taskRunner.assertThreadHoldsLock()
                    val coordinatorTask = waitingCoordinatorTask
    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/cache/DiskLruCache.kt

     * limitations under the License.
     */
    package okhttp3.internal.cache
    
    import java.io.Closeable
    import java.io.EOFException
    import java.io.Flushable
    import java.io.IOException
    import okhttp3.internal.assertThreadHoldsLock
    import okhttp3.internal.cache.DiskLruCache.Editor
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.Task
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.deleteContents
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

    import okhttp3.EventListener
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.WebSocket
    import okhttp3.WebSocketListener
    import okhttp3.internal.assertThreadHoldsLock
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.Task
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.connection.Exchange
    import okhttp3.internal.connection.RealCall
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

        throw AssertionError("Thread ${Thread.currentThread().name} MUST hold lock on $this")
      }
    }
    
    @Suppress("NOTHING_TO_INLINE")
    internal inline fun Any.assertThreadHoldsLock() {
      if (assertionsEnabled && !Thread.holdsLock(this)) {
        throw AssertionError("Thread ${Thread.currentThread().name} MUST hold lock on $this")
      }
    }
    
    @Suppress("NOTHING_TO_INLINE")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top