INNER CODE UNIT · Rust

Some

Augani/dory · dory-core/ffi/src/lib.rs:155

        if let Some(runtime) = self.runtime.lock().unwrap().take() {
            runtime.shutdown_background();
        }
    }
}

/// Start serving docker on `listen_fd` (an already-bound AF_UNIX listener the caller owns and hands
/// over), proxying to the guest `dockerd` reachable at `dockerd_socket_path`. Two worker threads —
/// dev-tool traffic doesn't need more, and idle RSS stays small.
#[uniffi::export]
pub fn start_dataplane(
    listen_fd: i32,
    dockerd_socket_path: String,
    gpu_supported: bool,
) -> std::sync::Arc<DoryDataplane> {
    spawn_dataplane(
        listen_fd,
        std::sync::Arc::new(dory_dataplane::UnixBackend {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…