Skip to content

Implement a futures-based condvar instead of using event for in-process eventing... #439

@todo

Description

@todo

A futures-based condvar can easily be implemented entirely in userspace, without the need for any kernel help. It would have a lot less overhead than using a kernel Event.


SunriseOS/sm/src/main.rs

Lines 72 to 82 in 269527c

// TODO: Implement a futures-based condvar instead of using event for in-process eventing.
// BODY: A futures-based condvar can easily be implemented entirely in userspace, without
// BODY: the need for any kernel help. It would have a lot less overhead than using a kernel Event.
/// Event signaled whenever a new service is registered. `get_service` waits on this event
/// if the wanted service is not found, to try again when a new service comes up later.
static ref SERVICES_EVENT: (WritableEvent, ReadableEvent) = {
crate::libuser::syscalls::create_event().unwrap()
};
}
/// Get the length of a service encoded as an u64.


This issue was generated by todo based on a TODO comment in 269527c when #384 was merged. cc @roblabla.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions