Hi,
I committed this fix for PR29381.
Tom
2006-10-30 Thomas Fitzsimmons <[EMAIL PROTECTED]>
* native/plugin/gcjwebplugin.cc (GCJ_New): Move GLib threading
initialization to NP_Initialize.
(NP_Initialize): Initialize GLib threading.
Index: native/plugin/gcjwebplugin.cc
===================================================================
RCS file: /sources/classpath/classpath/native/plugin/gcjwebplugin.cc,v
retrieving revision 1.12
diff -u -r1.12 gcjwebplugin.cc
--- native/plugin/gcjwebplugin.cc 13 Jun 2006 21:39:21 -0000 1.12
+++ native/plugin/gcjwebplugin.cc 31 Oct 2006 21:47:49 -0000
@@ -283,10 +283,6 @@
goto cleanup_done;
}
- // Initialize threads (needed for mutexes).
- if (!g_thread_supported ())
- g_thread_init (NULL);
-
// data
plugin_data_new (&data);
if (data == NULL)
@@ -1686,6 +1682,11 @@
pluginTable->getvalue = NewNPP_GetValueProc (GCJ_GetValue);
initialized = true;
+
+ // Initialize threads (needed for mutexes).
+ if (!g_thread_supported ())
+ g_thread_init (NULL);
+
plugin_instance_mutex = g_mutex_new ();
PLUGIN_DEBUG ("NP_Initialize: using " APPLETVIEWER_EXECUTABLE ".");