|  | 
Initializes the GLib thread system. 
 
Before you use a thread related function in glibmm, you should initialize the thread system. This is done by calling Glib::thread_init(). 
 thread_init() might only be called once. On the second call it will abort with an error. If you want to make sure that the thread system is initialized, you can do that too:  After that line either the thread system is initialized, or the program will abort if no thread system is available in GLib, i.e. eitherNote:You should only call thread_init() with a non-0parameter if you really know what you are doing.
thread_init() must not be called directly or indirectly as a callback from glibmm. Also no mutexes may be currently locked while calling thread_init().
 G_THREADS_ENABLEDis not defined orG_THREADS_IMPL_NONEis defined.
If no thread system is available and vtable is 0or if not all elements of vtable are non-0, then thread_init() will abort. 
 Note:To use thread_init() in your program, you have to link with the libraries that the command pkg-config --libs gthread-2.0outputs. This is not the case for all the other thread related functions of glibmm. Those can be used without having to link with the thread libraries. (You have to link withgthread-2.0if you actually want to use threads in your application, though.)
 Parameters:
  
    |  | vtable | A function table of type GThreadFunctions, that provides the entry points to the thread system to be used. | 
 Examples: 
thread/dispatcher.cc, and thread/thread.cc.
 |