pub unsafe fn join_thread(thread: *mut Thread)
Waits for a thread to finish.
thread must point to a valid and live thread record that has not already been detached or joined.
thread