thread_exit/1¶
thread_exit(+ Term)*
Terminates the thread immediately, leaving exited( _Term_)
as result-state for thread_join//22. If the thread has the attribute detached``true
it terminates, but its exit status cannot be retrieved using thread_join//22 making the value of Term irrelevant. The Prolog stacks and C-thread are reclaimed.