Commit 9247d229 by Thomas Fitzsimmons

2005-05-03 Thomas Fitzsimmons <fitzsim@redhat.com>

        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
        (init_glib_threads): Check if threading system is already
        initialized.

From-SVN: r99196
parent f525d7a7
2005-05-03 Thomas Fitzsimmons <fitzsim@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(init_glib_threads): Check if threading system is already
initialized.
2005-05-03 Andrew Overholt <overholt@redhat.com> 2005-05-03 Andrew Overholt <overholt@redhat.com>
PR libgcj/21372: PR libgcj/21372:
...@@ -136,6 +142,7 @@ ...@@ -136,6 +142,7 @@
* gnu/java/net/protocol/file/Connection.java * gnu/java/net/protocol/file/Connection.java
(lineSeparator): Initialize with SystemProperties.getProperty(). (lineSeparator): Initialize with SystemProperties.getProperty().
>>>>>>> 1.3571
2005-04-27 Chris Burdess <dog@gnu.org> 2005-04-27 Chris Burdess <dog@gnu.org>
* gnu/java/net/protocol/file/Connection.java: Return correct content * gnu/java/net/protocol/file/Connection.java: Return correct content
......
...@@ -275,10 +275,22 @@ init_glib_threads(JNIEnv *env, jint portableNativeSync) ...@@ -275,10 +275,22 @@ init_glib_threads(JNIEnv *env, jint portableNativeSync)
} }
(*env)->GetJavaVM( env, &the_vm ); (*env)->GetJavaVM( env, &the_vm );
if (portableNativeSync) if (!g_thread_supported ())
g_thread_init ( &portable_native_sync_jni_functions ); {
if (portableNativeSync)
g_thread_init ( &portable_native_sync_jni_functions );
else
g_thread_init ( NULL );
}
else else
g_thread_init ( NULL ); {
/* Warn if portable native sync is desired but the threading
system is already initialized. In that case we can't
override the threading implementation with our portable
native sync functions. */
if (portableNativeSync)
g_printerr ("peer warning: portable native sync disabled.\n");
}
/* Debugging progress message; uncomment if needed: */ /* Debugging progress message; uncomment if needed: */
/* printf("called gthread init\n"); */ /* printf("called gthread init\n"); */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment