]> git.saurik.com Git - wxWidgets.git/commitdiff
remove wxMSW-specific (but copied into wxPalm too) wxAppTraits::AlwaysYield(), it...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 May 2009 19:39:40 +0000 (19:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 May 2009 19:39:40 +0000 (19:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/apptbase.h
include/wx/msw/apptrait.h
include/wx/palmos/apptbase.h
include/wx/palmos/apptrait.h
src/msw/app.cpp
src/msw/basemsw.cpp
src/palmos/app.cpp
src/palmos/base.cpp

index 6aba6b4ae3e2c9f572b7f694d8132fba6c108257..45251e74a339b02387bcd078feb4d507feb1beb2 100644 (file)
@@ -26,9 +26,6 @@ public:
     // some opaque data which will be passed later to AfterChildWaitLoop()
     virtual void *BeforeChildWaitLoop() = 0;
 
-    // process pending Windows messages, even in console app
-    virtual void AlwaysYield() = 0;
-
     // called after starting to wait for the child termination, the parameter
     // is the return value of BeforeChildWaitLoop()
     virtual void AfterChildWaitLoop(void *data) = 0;
index 0c8f8ea2bf60d40212b16534b9999d5cd9135c4d..418356b169f9b83e6c5f6880b5e0f953108a7eb6 100644 (file)
@@ -21,7 +21,6 @@ class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase
 public:
     virtual wxEventLoopBase *CreateEventLoop();
     virtual void *BeforeChildWaitLoop();
-    virtual void AlwaysYield();
     virtual void AfterChildWaitLoop(void *data);
 #if wxUSE_TIMER
     virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
@@ -41,7 +40,6 @@ class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
 public:
     virtual wxEventLoopBase *CreateEventLoop();
     virtual void *BeforeChildWaitLoop();
-    virtual void AlwaysYield();
     virtual void AfterChildWaitLoop(void *data);
 #if wxUSE_TIMER
     virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
index b86e9cf3d4c12cabd0c5c339b325a4d631b8cd4a..07a8253cd8e92fea4c0ef95a0a4b5a02d8f68eaa 100644 (file)
@@ -26,9 +26,6 @@ public:
     // some opaque data which will be passed later to AfterChildWaitLoop()
     virtual void *BeforeChildWaitLoop() = 0;
 
-    // process pending Windows messages, even in console app
-    virtual void AlwaysYield() = 0;
-
     // called after starting to wait for the child termination, the parameter
     // is the return value of BeforeChildWaitLoop()
     virtual void AfterChildWaitLoop(void *data) = 0;
index f8eef8d38916b0a8c0f7ca9ff14b1214f7dcfca5..311514fe3cae8781b59a177dd02c550c172eeeba 100644 (file)
@@ -27,7 +27,6 @@ public:
     virtual wxEventLoopBase *CreateEventLoop();
 #endif // wxUSE_CONSOLE_EVENTLOOP
     virtual void *BeforeChildWaitLoop();
-    virtual void AlwaysYield();
     virtual void AfterChildWaitLoop(void *data);
 #if wxUSE_TIMER
     virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return new wxPalmOSTimerImpl(timer); }
@@ -43,7 +42,6 @@ class WXDLLIMPEXP_CORE wxGUIAppTraits : public wxGUIAppTraitsBase
 public:
     virtual wxEventLoopBase *CreateEventLoop();
     virtual void *BeforeChildWaitLoop();
-    virtual void AlwaysYield();
     virtual void AfterChildWaitLoop(void *data);
 #if wxUSE_TIMER
     // there is no wxTimer support yet
index 50df7cdeff693eaa46c5d098b41e64be2905cfd0..a4f6edfec4d396c80cbdb629f936832a3616d453 100644 (file)
@@ -200,11 +200,6 @@ void *wxGUIAppTraits::BeforeChildWaitLoop()
     return new ChildWaitLoopData(wd, winActive);
 }
 
-void wxGUIAppTraits::AlwaysYield()
-{
-    wxYield();
-}
-
 void wxGUIAppTraits::AfterChildWaitLoop(void *dataOrig)
 {
     wxEndBusyCursor();
index 51d1c26618af4524e78004b7e240c2ffc2dbdb02..4981322259fe6006ab884c9b50f7b52f24d3bf72 100644 (file)
@@ -52,21 +52,6 @@ WXDWORD wxAppTraits::DoSimpleWaitForThread(WXHANDLE hThread)
 // wxConsoleAppTraits implementation
 // ============================================================================
 
-void wxConsoleAppTraits::AlwaysYield()
-{
-    // we need to use special logic to deal with WM_PAINT: as this pseudo
-    // message is generated automatically as long as there are invalidated
-    // windows belonging to this thread, we'd never return if we waited here
-    // until we have no more of them left. OTOH, this message is always the
-    // last one in the queue, so we can safely return as soon as we detect it
-    MSG msg;
-    while ( ::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) )
-    {
-        if ( msg.message == WM_PAINT )
-            break;
-    }
-}
-
 void *wxConsoleAppTraits::BeforeChildWaitLoop()
 {
     // nothing to do here
index 8b98b53d7ee97ff62a8db2bce1fc245fc523c196..9c09f2336fb877e0022c9bc00af0066de8495c21 100644 (file)
@@ -100,11 +100,6 @@ void *wxGUIAppTraits::BeforeChildWaitLoop()
     return NULL;
 }
 
-void wxGUIAppTraits::AlwaysYield()
-{
-    wxYield();
-}
-
 void wxGUIAppTraits::AfterChildWaitLoop(void *dataOrig)
 {
 }
index cadd56b36846c51f30b2add236a061697b4be24f..d25c40f06194063785ea0b706397381206ffb94d 100644 (file)
 // wxConsoleAppTraits implementation
 // ============================================================================
 
-void wxConsoleAppTraits::AlwaysYield()
-{
-}
-
 void *wxConsoleAppTraits::BeforeChildWaitLoop()
 {
     return NULL;