This function is the same as g_thread_new() except that it allows for the possibility of failure.
If a thread can not be created (due to resource limits), @error is set and %NULL is returned.
an (optional) name for the new thread
a function to execute in the new thread
an argument to supply to the new thread
the new #GThread, or %NULL if an error occurred
GException on failure. ConstructionException GTK+ fails to create the object.
2.32
See Implementation
This function is the same as g_thread_new() except that it allows for the possibility of failure.
If a thread can not be created (due to resource limits), @error is set and %NULL is returned.