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