Skip to content

Commit

Permalink
rm unnecessary wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
declantsien committed Dec 20, 2022
1 parent d7a06ea commit 872eac1
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/wr/src/select/thread.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use std::ptr;

use futures::Future;
use libc::pselect;
use lisp_types::bindings::thread_select;

use crate::event_loop::{FdSet, Timespec};

async fn async_thread_select(
pub async fn tokio_select_fds(
nfds: i32,
readfds: &FdSet,
writefds: &FdSet,
Expand All @@ -24,15 +23,3 @@ async fn async_thread_select(
)
}
}

pub fn tokio_select_fds<'a>(
nfds: i32,
readfds: &'a FdSet,
writefds: &'a FdSet,
timeout: &'a Timespec,
) -> impl Future<Output = i32> + 'a {
async move {
let nfds: i32 = async_thread_select(nfds, readfds, writefds, timeout).await;
nfds
}
}

0 comments on commit 872eac1

Please sign in to comment.