Function deinit [src]

Prototype

pub fn deinit(self: *IoUring) void

Parameters

self: *IoUring

Source

pub fn deinit(self: *IoUring) void { assert(self.fd >= 0); // The mmaps depend on the fd, so the order of these calls is important: self.cq.deinit(); self.sq.deinit(); posix.close(self.fd); self.fd = -1; }