don't wake up on Windows messages when waiting for thread termination in a console application as this results in an infinite loop because we never process them and thus they remain in the queue for always (modified patch 1615875; closes bugs 877128)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-02-02 22:46:48 +00:00
parent ac6e0eb154
commit e570a44b37
6 changed files with 36 additions and 12 deletions

View File

@@ -225,6 +225,19 @@ bool wxGUIAppTraits::DoMessageFromThreadWait()
return evtLoop->Dispatch();
}
DWORD wxGUIAppTraits::WaitForThread(WXHANDLE hThread)
{
return ::MsgWaitForMultipleObjects
(
1, // number of objects to wait for
(HANDLE *)&hThread, // the objects
false, // wait for any objects, not all
INFINITE, // no timeout
QS_ALLINPUT | // return as soon as there are any events
QS_ALLPOSTMESSAGE
);
}
wxPortId wxGUIAppTraits::GetToolkitVersion(int *majVer, int *minVer) const
{
OSVERSIONINFO info;