pub fn thread_join(tid: usize, status: Option<&mut i32>) -> Result<usize>
Join a thread previously created by the current task.
Returns the joined thread TID.