MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / rendezvous

Method rendezvous

kernel/src/process.rs:213–219  ·  view source on GitHub ↗

Get a clone of a rendezvous handle if it exists

(&self, id: u64)

Source from the content-addressed store, hash-verified

211
212 /// Get a clone of a rendezvous handle if it exists
213 pub fn rendezvous(&self, id: u64)
214 -> Option<Arc<RwLock<Rendezvous>>> {
215 self.process.read().handles.get(id as usize) // Option<&Option<Arc<>>>
216 .unwrap_or(&None) // &Option<Arc<>>
217 .as_ref() // Option<&Arc<>>
218 .map(|rv| rv.clone()) // Option<Arc<>>
219 }
220
221 /// Take the rendezvous, leaving handle empty (None)
222 pub fn take_rendezvous(&self, id: u64)

Callers 4

sys_receiveFunction · 0.80
sys_sendFunction · 0.80
sys_copy_rendezvousFunction · 0.80
from_valuesMethod · 0.80

Calls 3

cloneMethod · 0.80
as_refMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected