thread finishes, i.e. the function
given to g_thread_new(), returns or
g_thread_exit() is called.
thread has already terminated, then
Any thread can wait for any other thread by calling g_thread_join(),
not just its ‘creator’. Calling
g_thread_join() from multiple threads
for the same
thread leads to undefined behaviour.
The value returned by
func or given to
returned by this function.
g_thread_join() consumes the reference to the passed-in
This will usually cause the
GThread struct and associated resources
to be freed. Use
g_thread_ref() to obtain an extra reference if you
want to keep the GThread alive beyond the