Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for TaskQueue (0.28 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

     *
     * Work within queues is not concurrent. This is equivalent to each queue having a dedicated thread
     * for its work; in practice a set of queues may share a set of threads to save resources.
     */
    class TaskQueue internal constructor(
      internal val taskRunner: TaskRunner,
      internal val name: String,
    ) {
      val lock: ReentrantLock = ReentrantLock()
    
      internal var shutdown = false
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/concurrent/Task.kt

     *
     * Task Queues
     * -----------
     *
     * Tasks are bound to the [TaskQueue] they are scheduled in. Each queue is sequential and the tasks
     * within it never execute concurrently. It is an error to use a task in multiple queues.
     */
    abstract class Task(
      val name: String,
      val cancelable: Boolean = true,
    ) {
      // Guarded by the TaskRunner.
      internal var queue: TaskQueue? = null
    
      /** Undefined unless this is in [TaskQueue.futureTasks]. */
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

                }
              }
            }
          }
        }
    
      internal fun kickCoordinator(taskQueue: TaskQueue) {
        lock.assertHeld()
    
        if (taskQueue.activeTask == null) {
          if (taskQueue.futureTasks.isNotEmpty()) {
            readyQueues.addIfAbsent(taskQueue)
          } else {
            readyQueues.remove(taskQueue)
          }
        }
    
        if (coordinatorWaiting) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt

    import java.util.logging.Logger
    
    internal inline fun Logger.taskLog(
      task: Task,
      queue: TaskQueue,
      messageBlock: () -> String,
    ) {
      if (isLoggable(Level.FINE)) {
        log(task, queue, messageBlock())
      }
    }
    
    internal inline fun <T> Logger.logElapsed(
      task: Task,
      queue: TaskQueue,
      block: () -> T,
    ): T {
      var startNs = -1L
      val loggingEnabled = isLoggable(Level.FINE)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

            val writerToClose = this.writer
            if (writerToClose != null) {
              this.writer = null
              taskQueue.execute("$name writer close", cancelable = false) {
                writerToClose.closeQuietly()
              }
            }
    
            this.taskQueue.shutdown()
          }
    
          streamsToClose =
            when {
              writer == null -> streams
              else -> null
            }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  6. maven-core/src/test/resources/apiv4-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom

        <module>plexus-mimetyper</module>
        <module>plexus-notification</module>
        <module>plexus-resource</module>
        <module>plexus-security</module>
        <module>plexus-summit</module>
        <module>plexus-taskqueue</module>
        <module>plexus-velocity</module>
        <module>plexus-xmlrpc</module>
      </modules>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sun Oct 02 08:41:25 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  7. maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-components/1.1.6/plexus-components-1.1.6.pom

        <module>plexus-mimetyper</module>
        <module>plexus-notification</module>
        <module>plexus-resource</module>
        <module>plexus-security</module>
        <module>plexus-summit</module>
        <module>plexus-taskqueue</module>
        <module>plexus-velocity</module>
        <module>plexus-xmlrpc</module>
      </modules>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Dec 24 18:09:10 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

    import okhttp3.ConnectionPool
    import okhttp3.Route
    import okhttp3.internal.assertHeld
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.Task
    import okhttp3.internal.concurrent.TaskQueue
    import okhttp3.internal.concurrent.TaskRunner
    import okhttp3.internal.connection.Locks.withLock
    import okhttp3.internal.connection.RealCall.CallReference
    import okhttp3.internal.okHttpName
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/concurrent/TaskQueue$execute$1;-><init>(Ljava/lang/String;ZLkotlin/jvm/functions/Function0;)V
    HSPLokhttp3/internal/concurrent/TaskQueue$execute$1;->runOnce()J
    HSPLokhttp3/internal/concurrent/TaskQueue;-><init>(Lokhttp3/internal/concurrent/TaskRunner;Ljava/lang/String;)V
    HSPLokhttp3/internal/concurrent/TaskQueue;->cancelAllAndDecide$okhttp()Z
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

          "FINE: Q10002 starting              : task three",
          "FINE: Q10002 finished run in   0 µs: task three",
        )
      }
    
      /** Test the introspection method [TaskQueue.scheduledTasks]. */
      @Test fun scheduledTasks() {
        redQueue.execute("task one", 100.µs) {
          // Do nothing.
        }
    
        redQueue.execute("task two", 200.µs) {
          // Do nothing.
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top