Function xous::syscall::join_thread

source ·
pub fn join_thread(tid: TID) -> Result<usize, Error>
Expand description

Block the current thread and wait for the specified thread to return. Returns the return value of the thread.

§Errors

  • ThreadNotAvailable: The thread could not be found, or was not sleeping.