INNER CODE UNIT · Rust
drop
Augani/dory · dory-core/ffi/src/lib.rs:154
fn drop(&mut self) {
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,