X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80fdcdb90ef779185492dab676d461fc34933312..74a8f67d96591cec101def2a7d47c64072aff7fd:/src/msw/basemsw.cpp diff --git a/src/msw/basemsw.cpp b/src/msw/basemsw.cpp index 91597dcb5f..67ab1674a6 100644 --- a/src/msw/basemsw.cpp +++ b/src/msw/basemsw.cpp @@ -43,10 +43,12 @@ // wxAppTraits implementation // ============================================================================ +#if wxUSE_THREADS WXDWORD wxAppTraits::DoSimpleWaitForThread(WXHANDLE hThread) { return ::WaitForSingleObject((HANDLE)hThread, INFINITE); } +#endif // wxUSE_THREADS // ============================================================================ // wxConsoleAppTraits implementation @@ -63,12 +65,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 +97,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;