get_thread_exitcode
| Definition: | atom dwExitCode = get_thread_exitcode(atom hThread) |
| Description: | Retrieve the exit code of a thread. |
| pwa/p2js: | Not supported. |
| Comments: |
If the thread is still running, STILL_ACTIVE (=259) is returned. Hence a thread should not terminate with
that value to avoid confusion.
wait_thread() is preferred over polling with get_thread_exitcode()!=STILL_ACTIVE. |
| Implementation: | See builtins\VM\pThreadN.e (an autoinclude) for details of the actual implementation. |
| See Also: | exit_thread, wait_thread |