moirai-executor 0.9.1

Hybrid executor implementation for Moirai concurrency library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Priority plane indices shared by the queue's owner and stealer sides.

use moirai_core::Priority;

/// One queue per priority level; indices come from [`Priority::index`] (SSOT).
pub(super) const PRIORITY_LEVELS: usize = Priority::Critical.index() + 1;
/// Pop scan order: highest [`Priority::index`] first.
pub(super) const PRIORITY_POP_ORDER: [usize; PRIORITY_LEVELS] = [
    Priority::Critical.index(),
    Priority::High.index(),
    Priority::Normal.index(),
    Priority::Low.index(),
];