Module multi_thread

Source
Expand description

Multi-threaded runtime

ModulesΒ§

counters πŸ”’
handle πŸ”’
idle πŸ”’
Coordinates idling workers
overflow πŸ”’
park πŸ”’
Parks the runtime.
queue πŸ”’
Run-queue structures to support a work-stealing scheduler
stats πŸ”’
trace_mock πŸ”’
worker πŸ”’
A scheduler is initialized with a fixed number of workers. Each worker is driven by a thread. Each worker has a β€œcore” which contains data such as the run queue and other state. When block_in_place is called, the worker’s β€œcore” is handed off to a new thread allowing the scheduler to continue to make progress while the originating thread blocks.

StructsΒ§

MultiThread πŸ”’
Work-stealing based thread pool for executing futures.