pub fn sys_thread_join( tid: u64, status_ptr: u64, flags: u64, ) -> Result<u64, SyscallError>
SYS_THREAD_JOIN (342): wait for a thread created by the current task.