libfringe: bump

This commit is contained in:
occheung 2021-08-25 12:03:04 +08:00
parent 251cd4dcc6
commit c113cd6bf5
2 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ smoltcp = { version = "0.6.0", default-features = false, features = ["alloc", "e
riscv = { version = "0.6.0", features = ["inline-asm"] }
[dependencies.fringe]
git = "https://github.com/m-labs/libfringe"
rev = "b8a6d8f"
git = "https://git.m-labs.hk/M-Labs/libfringe.git"
rev = "9748bb"
default-features = false
features = ["alloc"]

View File

@ -50,7 +50,7 @@ enum WaitResult {
#[derive(Debug)]
struct Thread {
generator: Generator<WaitResult, WaitRequest, OwnedStack>,
generator: Generator<'static, WaitResult, WaitRequest, OwnedStack>,
waiting_for: WaitRequest,
interrupted: bool
}
@ -194,7 +194,7 @@ impl Scheduler {
#[derive(Clone)]
pub struct Io<'a> {
yielder: Option<&'a Yielder<WaitResult, WaitRequest, OwnedStack>>,
yielder: Option<&'a Yielder<WaitResult, WaitRequest>>,
spawned: Urc<RefCell<Vec<ThreadHandle>>>,
sockets: Urc<RefCell<SocketSet>>,
}
@ -207,7 +207,7 @@ impl<'a> Io<'a> {
handle
}
fn yielder(&self) -> &'a Yielder<WaitResult, WaitRequest, OwnedStack> {
fn yielder(&self) -> &'a Yielder<WaitResult, WaitRequest> {
self.yielder.expect("cannot suspend the scheduler thread")
}