wasi-c2: implement a synchronous poll_oneoff in terms of yanix
doesnt work on unix yet! also breaks all the rules about using the cap-std family instead of rawfds! but this is cool and im happy with it
This commit is contained in:
@@ -891,6 +891,10 @@ impl<'a> wasi_snapshot_preview1::WasiSnapshotPreview1 for WasiCtx {
|
||||
events: &GuestPtr<types::Event>,
|
||||
nsubscriptions: types::Size,
|
||||
) -> Result<types::Size, Error> {
|
||||
if nsubscriptions == 0 {
|
||||
return Err(Error::Inval);
|
||||
}
|
||||
|
||||
use cap_std::time::{Duration, SystemClock};
|
||||
let table = self.table();
|
||||
let mut poll = Poll::new();
|
||||
|
||||
Reference in New Issue
Block a user