Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for contextSwitchCount (0.05 sec)

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

      fun runNextTask() {
        taskRunner.assertLockNotHeld()
    
        taskRunner.withLock {
          val contextSwitchCountBefore = contextSwitchCount
          yieldUntil(ResumePriority.BeforeOtherTasks) {
            contextSwitchCount > contextSwitchCountBefore
          }
        }
      }
    
      /** Sleep until [durationNanos] elapses. For use by the task threads. */
      fun sleep(durationNanos: Long) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top