moving common implementation for osx closer to unix, by using threadspsx.cpp and unix/dir.cpp, getting rid of morefile(x) and moving colour.cpp to core
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1177,7 +1177,14 @@ void wxApp::MacDoOneEvent()
|
||||
if ( wxTheApp->ProcessIdle() )
|
||||
sleepTime = kEventDurationNoWait ;
|
||||
else
|
||||
{
|
||||
sleepTime = kEventDurationSecond;
|
||||
#if wxUSE_THREADS
|
||||
wxMutexGuiLeave();
|
||||
wxMilliSleep(20);
|
||||
wxMutexGuiEnter();
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
case eventLoopQuitErr :
|
||||
@@ -1230,11 +1237,6 @@ void wxApp::MacHandleOneEvent( WXEVENTREF evr )
|
||||
OSStatus status = SendEventToEventTarget((EventRef) evr , theTarget);
|
||||
if (status == eventNotHandledErr)
|
||||
MacHandleUnhandledEvent(evr);
|
||||
|
||||
#if wxUSE_THREADS
|
||||
wxMutexGuiLeaveOrEnter();
|
||||
#endif // wxUSE_THREADS
|
||||
|
||||
#else
|
||||
// TODO Threads
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user