dope-core 0.77.0

Owned native I/O and completion driver for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use o3::depot::{self, capacity, queue::resident};

use crate::driver::schedule::ready::{self, wake::queue::Queue};

pub(super) fn lane<'a, 'd>(
    source: depot::raw::Proof<(&'a Queue<'d>, usize), capacity::Physical>,
) -> (
    &'a Queue<'d>,
    resident::Lane<'a, resident::Lanes<ready::Retained<'d>>>,
) {
    let (queue, index) = source.into_inner();
    // SAFETY: the queue owns these same lanes and their extent is immutable.
    let lane = resident::raw::View::lane(unsafe { depot::raw::Proof::new((&queue.inner, index)) });
    (queue, lane)
}