tokio::runtime::scheduler::multi_thread

Module queue

Source
Expand description

Run-queue structures to support a work-stealing scheduler

Structs§

  • Inner 🔒
  • Local 🔒
    Producer handle. May only be used from a single thread.
  • Steal 🔒
    Consumer handle. May be used from many threads.

Constants§

Functions§

  • local 🔒
    Create a new local run-queue
  • pack 🔒
    Join the two head values
  • unpack 🔒
    Split the head value into the real head and the index a stealer is working on.

Type Aliases§