X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80fdcdb90ef779185492dab676d461fc34933312..cdbd62d6ff290fd58acd1bc5574dfc79db3a6f70:/src/msw/basemsw.cpp diff --git a/src/msw/basemsw.cpp b/src/msw/basemsw.cpp index 91597dcb5f..3204e02154 100644 --- a/src/msw/basemsw.cpp +++ b/src/msw/basemsw.cpp @@ -4,7 +4,6 @@ // Author: Vadim Zeitlin // Modified by: // Created: 22.06.2003 -// RCS-ID: $Id$ // Copyright: (c) 2003 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -43,10 +42,12 @@ // wxAppTraits implementation // ============================================================================ +#if wxUSE_THREADS WXDWORD wxAppTraits::DoSimpleWaitForThread(WXHANDLE hThread) { return ::WaitForSingleObject((HANDLE)hThread, INFINITE); } +#endif // wxUSE_THREADS // ============================================================================ // wxConsoleAppTraits implementation @@ -63,12 +64,19 @@ void wxConsoleAppTraits::AfterChildWaitLoop(void * WXUNUSED(data)) // nothing to do here } +#if wxUSE_THREADS bool wxConsoleAppTraits::DoMessageFromThreadWait() { // nothing to process here return true; } +WXDWORD wxConsoleAppTraits::WaitForThread(WXHANDLE hThread, int WXUNUSED(flags)) +{ + return DoSimpleWaitForThread(hThread); +} +#endif // wxUSE_THREADS + #if wxUSE_TIMER wxTimerImpl *wxConsoleAppTraits::CreateTimerImpl(wxTimer *timer) @@ -88,11 +96,6 @@ wxEventLoopBase *wxConsoleAppTraits::CreateEventLoop() } -WXDWORD wxConsoleAppTraits::WaitForThread(WXHANDLE hThread, int WXUNUSED(flags)) -{ - return DoSimpleWaitForThread(hThread); -} - bool wxConsoleAppTraits::WriteToStderr(const wxString& text) { return wxFprintf(stderr, "%s", text) != -1;