According to:
https://developer.gnome.org/glib/2.34/glib-Deprecated-Thread-APIs.html#g-thread-init
g_thread_init has been deprecated since version 2.32 and should not be used in newly-written code. This function is no longer necessary. The GLib threading system is automatically initialized at the start of your program.
The function prototype is as follows:
void g_thread_init (gpointer vtable);
This is also mentioned at the above link:
Since version 2.32, GLib does not support custom thread implementations anymore and the
vtable
parameter is ignored and you should passNULL
.
It's strange that in one statement they say that you should not use it and then in another say if you do use it, pass NULL as it's argument. Either way, if you're using Glib >= 2.32, calling it is no longer necessary.