]> git.saurik.com Git - wxWidgets.git/commitdiff
Test if G_threads already are initialized.
authorRobert Roebling <robert@roebling.de>
Wed, 10 Sep 2003 14:28:29 +0000 (14:28 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 10 Sep 2003 14:28:29 +0000 (14:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/app.cpp
src/gtk1/app.cpp

index dad9249bc9287f200a3cc43b70979b6521b6fc34..e58a9c8e97780ce90199ea12be0422751d8d53e5 100644 (file)
@@ -584,7 +584,8 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
     }
     else
     {
-        g_thread_init(NULL);
+        if (!g_thread_supported())
+            g_thread_init(NULL);
     }
 #endif // wxUSE_THREADS
 
index dad9249bc9287f200a3cc43b70979b6521b6fc34..e58a9c8e97780ce90199ea12be0422751d8d53e5 100644 (file)
@@ -584,7 +584,8 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
     }
     else
     {
-        g_thread_init(NULL);
+        if (!g_thread_supported())
+            g_thread_init(NULL);
     }
 #endif // wxUSE_THREADS