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
This commit is contained in:
@@ -791,7 +791,8 @@ int wxEntryStart( int& argc, char *argv[] )
|
||||
}
|
||||
else
|
||||
{
|
||||
g_thread_init(NULL);
|
||||
if (!g_thread_supported())
|
||||
g_thread_init(NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -791,7 +791,8 @@ int wxEntryStart( int& argc, char *argv[] )
|
||||
}
|
||||
else
|
||||
{
|
||||
g_thread_init(NULL);
|
||||
if (!g_thread_supported())
|
||||
g_thread_init(NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user