[gnome-db] g_thread_init call.



Hello Vivien,

I noticed that you added the following line to libgda/gda-init.c

g_thread_init (NULL);

The application from where I link to the libgda libraries, already calls g_thread_init and now I get the error:

GThread-ERROR **: GThread system may only be initialized once.
aborting...
Aborted

I see that you put some flags around this call, so I can set the CFLAGS for instance to disable it, but I was wondering if it is not better to put this g_thread_init call somewhere else. If people are not using the thread features of libgda, the init function should also not be called in my opinion.

Future libgda versions that will ship with the Linux distributions, will probably include this g_thread_init call, so that means that I always have to supply a modified version of libgda, while I would like to stick with the "defaults".

Does this make sense?

Bas.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]