Skip to content

Move the handling of PROCESS_STATE_CHANGED to a single dedicated task. #543

@todo

Description

@todo

We currently handle PROCESS_STATE_CHANGED signaling in one task per launched process. This is a ridiculous amount of overhead.


// TODO: Move the handling of PROCESS_STATE_CHANGED to a single dedicated task.
// BODY: We currently handle PROCESS_STATE_CHANGED signaling in one
// BODY: task per launched process. This is a ridiculous amount of
// BODY: overhead.
workqueue.clone().spawn(FutureObj::new(Box::new(async move {
let mut current_state = ProcessState::Created;
while current_state != ProcessState::Exited {
if let Err(err) = process_static.wait_async(workqueue.clone()).await {
error!("{:?}", err);
return;
}


This issue was generated by todo based on a TODO comment in c2a92a4 when #542 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