dope-uring 0.77.0

Owned io_uring backend for dope
Documentation
1
2
3
4
5
6
7
8
9
use crate::{driver::engine::Engine, reactor::cq};
use dope_sys::{engine::ring, memory};

impl<C: ring::Context> memory::raw::Release<u16> for Engine<C> {
    unsafe fn release(&mut self, bid: u16) {
        // SAFETY: the caller returns this engine's unique slot after its final access.
        unsafe { self.ring.owner.storage_mut().defer(cq::Buffer(bid)) }
    }
}