Implement the typical use of waitpid
This commit is contained in:
parent
e680a84a57
commit
3e726a5d0d
6 changed files with 146 additions and 101 deletions
|
@ -77,4 +77,8 @@ impl ContextList {
|
|||
}
|
||||
Ok(context_lock)
|
||||
}
|
||||
|
||||
pub fn remove(&mut self, id: usize) -> Option<RwLock<Context>> {
|
||||
self.map.remove(&id)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue