Terminates the current thread.
Calling exit with a parameter
retval is equivalent to returning
retval from the
func, as given to Thread.
You must only call exit from a thread that you created yourself with Thread or related APIs. You must not call this function from a thread created with another threading library or or from within a ThreadPool.
the return value of this thread