Thread.exit

Terminates the current thread.

If another thread is waiting for us using glib.thread.Thread.join then the waiting thread will be woken up and get retval as the return value of glib.thread.Thread.join.

Calling glib.thread.Thread.exit with a parameter retval is equivalent to returning retval from the function func, as given to glib.thread.Thread.new_.

You must only call glib.thread.Thread.exit from a thread that you created yourself with glib.thread.Thread.new_ or related APIs. You must not call this function from a thread created with another threading library or or from within a #GThreadPool.

class Thread
static
void
exit
(
void* retval = null
)

Parameters

retval void*

the return value of this thread