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

Method take_rendezvous

kernel/src/process.rs:222–225  ·  view source on GitHub ↗

Take the rendezvous, leaving handle empty (None)

(&self, id: u64)

Source from the content-addressed store, hash-verified

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 {

Callers 4

sys_execFunction · 0.80
sys_mountFunction · 0.80
sys_closeFunction · 0.80
from_valuesMethod · 0.80

Calls 2

takeMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected