Take the rendezvous, leaving handle empty (None)
(&self, id: u64)
| 220 | |
| 221 | /// Take the rendezvous, leaving handle empty (None) |
| 222 | pub fn take_rendezvous(&self, id: u64) |
| 223 | -> Option<Arc<RwLock<Rendezvous>>> { |
| 224 | self.process.write().handles.get_mut(id as usize).map_or(None, |elem| elem.take()) |
| 225 | } |
| 226 | |
| 227 | /// Add a rendezvous to the process, returning the handle |
| 228 | pub fn give_rendezvous(&self, rendezvous: Arc<RwLock<Rendezvous>>) -> usize { |