Closed GoogleCodeExporter closed 9 years ago
Thanks for your report. So do you mean that g_thread_init() must be called
explicitly?
Original comment by james...@gmail.com
on 12 Jun 2008 at 1:27
If the code in question is called from multiple threads, then yes, someone
has to explicitly call g_thread_init().
You could simply expect that host applications do it (that is, add it at
the top of hosts/gtk/main.cc), but since threads are created and used
internally -
for example, from the curl code - it's probably better to do it inside the
google gadgets library. So, maybe add to the MainLoop::Impl constructor:
if (!g_thread_supported())
g_thread_init(NULL);
Note also that without calling g_thread_init() GStaticMutex is a no-op.
Original comment by owtay...@gmail.com
on 12 Jun 2008 at 2:14
Thanks for your suggestion. We'll fix it asap.
Original comment by james...@gmail.com
on 13 Jun 2008 at 4:35
Original comment by james...@gmail.com
on 13 Jun 2008 at 6:02
Should be fixed in 0.9.3. Please reopen if not.
Original comment by james...@gmail.com
on 13 Jun 2008 at 2:16
Original issue reported on code.google.com by
owtay...@gmail.com
on 12 Jun 2008 at 1:23