wait_thread
| Definition: | wait_thread(object hThread) |
| Description: | Wait for a thread or set of threads to terminate. |
| pwa/p2js: | Not supported. |
| 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. |
| Implementation: | See builtins\VM\pThreadN.e (an autoinclude) for details of the actual implementation. |
| See Also: | create_thread, exit_thread, get_thread_exitcode |