Makefile tweaks

Threads work now under wxGTK and glibc 2


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-12-26 20:09:03 +00:00
parent 2a040d3f07
commit f3855ef064
15 changed files with 838 additions and 771 deletions

View File

@@ -22,6 +22,7 @@
#include "wx/resource.h"
#include "wx/module.h"
#include "wx/image.h"
#include "wx/thread.h"
#include "unistd.h"
@@ -137,7 +138,9 @@ END_EVENT_TABLE()
gint wxapp_idle_callback( gpointer WXUNUSED(data) )
{
if (wxTheApp) while (wxTheApp->ProcessIdle()) {}
usleep( 10000 );
wxMutexGuiLeave();
usleep(10000);
wxMutexGuiEnter();
return TRUE;
}
@@ -213,8 +216,8 @@ bool wxApp::SendIdleEvents(void)
wxNode* node = wxTopLevelWindows.First();
while (node)
{
wxWindow* win = (wxWindow*) node->Data();
if (SendIdleEvents(win))
wxWindow* win = (wxWindow*) node->Data();
if (SendIdleEvents(win))
needMore = TRUE;
node = node->Next();
}
@@ -478,6 +481,3 @@ int wxEntry( int argc, char *argv[] )
//-----------------------------------------------------------------------------