Exits the current thread. If another thread is waiting for that
thread using g_thread_join() and the current thread is joinable, the
waiting thread will be woken up and get retval as the return value
of g_thread_join(). If the current thread is not joinable, retval
is ignored. Calling
is equivalent to returning retval from the function func, as given
to g_thread_create().
Note
Never call g_thread_exit() from within a thread of a
GThreadPool, as that will mess up the bookkeeping and lead to funny
and unwanted results.
Exits the current thread. If another thread is waiting for that thread using g_thread_join() and the current thread is joinable, the waiting thread will be woken up and get retval as the return value of g_thread_join(). If the current thread is not joinable, retval is ignored. Calling is equivalent to returning retval from the function func, as given to g_thread_create(). Note Never call g_thread_exit() from within a thread of a GThreadPool, as that will mess up the bookkeeping and lead to funny and unwanted results.