If another thread is waiting for us using Thread.join then the
waiting thread will be woken up and get retval as the return value
of Thread.join.
Calling Thread.exit with a parameter retval is equivalent to
returning retval from the function func, as given to Thread.new.
You must only call Thread.exit from a thread that you created
yourself with Thread.new or related APIs. You must not call
this function from a thread created with another threading library
or or from within a glib.ThreadPool
Terminates the current thread.
If another thread is waiting for us using Thread.join then the waiting thread will be woken up and get retval as the return value of Thread.join.
Calling Thread.exit with a parameter retval is equivalent to returning retval from the function func, as given to Thread.new.
You must only call Thread.exit from a thread that you created yourself with Thread.new or related APIs. You must not call this function from a thread created with another threading library or or from within a glib.ThreadPool