pub const SYS_THREAD_JOIN: usize = 342;
Wait for a thread to exit.
tid
status_ptr
Blocks until the thread terminates.