configure and #ifdef wxUSE_XXX updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -24,8 +24,9 @@
|
||||
#endif
|
||||
#include "wx/module.h"
|
||||
#include "wx/image.h"
|
||||
#ifdef wxUSE_THREADS
|
||||
#include "wx/thread.h"
|
||||
|
||||
#endif
|
||||
#include "unistd.h"
|
||||
|
||||
#include "glib.h"
|
||||
@@ -145,9 +146,13 @@ END_EVENT_TABLE()
|
||||
gint wxapp_idle_callback( gpointer WXUNUSED(data) )
|
||||
{
|
||||
if (wxTheApp) while (wxTheApp->ProcessIdle()) {}
|
||||
#ifdef wxUSE_THREADS
|
||||
wxMutexGuiLeave();
|
||||
#endif
|
||||
usleep(10000);
|
||||
#ifdef wxUSE_THREADS
|
||||
wxMutexGuiEnter();
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user