public T join ()
Waits until this finishes, i.
Any thread can wait for any other thread by calling join, not just its 'creator'. Calling join from multiple threads for the same this leads to undefined behaviour.
The value returned by
func or given to exit is returned by
join consumes the reference to the passed-in this. This will usually cause the
Thread struct and associated resources to be freed. Use
obtain an extra reference if you want to keep the GThread alive beyond the join call.
the return value of the thread