mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
xous: document some more functions
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
ca53abbd25
commit
a83cf9fe48
1 changed files with 3 additions and 1 deletions
|
|
@ -1495,7 +1495,7 @@ where
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Wait for a thread to finish
|
/// Wait for a thread to finish. This is equivalent to `join_thread`
|
||||||
pub fn wait_thread<T>(joiner: crate::arch::WaitHandle<T>) -> SysCallResult {
|
pub fn wait_thread<T>(joiner: crate::arch::WaitHandle<T>) -> SysCallResult {
|
||||||
crate::arch::wait_thread(joiner)
|
crate::arch::wait_thread(joiner)
|
||||||
}
|
}
|
||||||
|
|
@ -1605,6 +1605,8 @@ pub fn join_thread(tid: TID) -> core::result::Result<usize, Error> {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Perform a raw syscall and return the result. This will transform
|
||||||
|
/// `xous::Result::Error(e)` into an `Err(e)`.
|
||||||
pub fn rsyscall(call: SysCall) -> SysCallResult {
|
pub fn rsyscall(call: SysCall) -> SysCallResult {
|
||||||
let mut ret = Result::Ok;
|
let mut ret = Result::Ok;
|
||||||
let args = call.as_args();
|
let args = call.as_args();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue