wait_thread

Definition: wait_thread(object hThread)
Description: Wait for a thread or set of threads to terminate.
Comments: hThread can be an atom as returned by create_thread or a sequence of such.

wait_thread() is preferred over polling with get_thread_exitcode()!=STILL_ACTIVE.

An application should normally signal all threads to exit and use wait_thread() to let them do so before terminating itself.
See Also: create_thread, exit_thread, get_thread_exitcode