Add thread spawning FFI

This commit is contained in:
Jett Chen 2023-08-27 10:21:55 +08:00
parent a2cbd2ad77
commit 1b69b4a8e1
7 changed files with 98 additions and 29 deletions

View file

@ -5,9 +5,6 @@ pub struct TunInterface {
inner: AsyncFd<crate::TunInterface>,
}
unsafe impl Send for TunInterface {
}
impl TunInterface {
pub fn new(tun: crate::TunInterface) -> io::Result<Self> {
Ok(Self {