X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f00be4b33cdf013af6b64bfbd0e6841e7f0d574..f60b1d829dd8a6d5e47a2adcd3690acb3bd10150:/src/msw/thread.cpp diff --git a/src/msw/thread.cpp b/src/msw/thread.cpp index 24aa2a43fd..ac439b82c2 100644 --- a/src/msw/thread.cpp +++ b/src/msw/thread.cpp @@ -705,14 +705,17 @@ wxThreadInternal::WaitForTerminate(wxCriticalSection& cs, } } +#if !defined(QS_ALLPOSTMESSAGE) +#define QS_ALLPOSTMESSAGE 0 +#endif + result = ::MsgWaitForMultipleObjects ( 1, // number of objects to wait for &m_hThread, // the objects false, // don't wait for all objects INFINITE, // no timeout - QS_ALLINPUT | // return as soon as there are any events - QS_ALLPOSTMESSAGE + QS_ALLINPUT|QS_ALLPOSTMESSAGE // return as soon as there are any events ); switch ( result ) @@ -885,10 +888,9 @@ unsigned long wxThread::GetCurrentId() return (unsigned long)::GetCurrentThreadId(); } -bool wxThread::SetConcurrency(size_t level) +bool wxThread::SetConcurrency(size_t WXUNUSED_IN_WINCE(level)) { #ifdef __WXWINCE__ - wxUnusedVar(level); return false; #else wxASSERT_MSG( IsMain(), _T("should only be called from the main thread") );