From 9d7fde109cb2cf0738d393ac60fa0738e25dee7e Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Wed, 10 Sep 2003 14:32:25 +0000 Subject: [PATCH] Test if g_thread alreasy is initialized. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/app.cpp | 3 ++- src/gtk1/app.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 6e324b8a47..b784e9d0b9 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -791,7 +791,8 @@ int wxEntryStart( int& argc, char *argv[] ) } else { - g_thread_init(NULL); + if (!g_thread_supported()) + g_thread_init(NULL); } #endif diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 6e324b8a47..b784e9d0b9 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -791,7 +791,8 @@ int wxEntryStart( int& argc, char *argv[] ) } else { - g_thread_init(NULL); + if (!g_thread_supported()) + g_thread_init(NULL); } #endif