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

Function new_rendezvous

kernel/src/process.rs:874–883  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

872}
873
874pub fn new_rendezvous() -> Result<(usize, usize), usize> {
875 if let Some(thread) = CURRENT_THREAD.read().as_ref() {
876 let rv = Arc::new(RwLock::new(Rendezvous::Empty));
877
878 let handle1 = thread.give_rendezvous(rv.clone());
879 let handle2 = thread.give_rendezvous(rv);
880 return Ok((handle1, handle2));
881 }
882 Err(syscalls::SYSCALL_ERROR_THREAD)
883}

Callers 8

sys_new_rendezvousFunction · 0.70
new_shellMethod · 0.50
mountFunction · 0.50
mainFunction · 0.50
exec_pathFunction · 0.50
exec_pathFunction · 0.50
mainFunction · 0.50
open_pathFunction · 0.50

Calls 4

give_rendezvousMethod · 0.80
cloneMethod · 0.80
as_refMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected