fix for hanging in wxThread::Delete() (patch 882198)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@25551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -206,9 +206,9 @@ wxMSW:
|
||||
|
||||
- strip ampersands from strings returned by wxMenuBar::GetLabelTop()
|
||||
- fixed bug in wxIniConfig::DeleteEntry() (Parinya Thipchart)
|
||||
- fixed hang (sometimes) in wxThread::Delete() (Carl-Friedrich Braun)
|
||||
- wxLongLong formatting with MinGW corrected
|
||||
- wxFileDialog now returns correct filter index for multiple-file
|
||||
dialogs
|
||||
- wxFileDialog now returns correct filter index for multiple-file dialogs
|
||||
|
||||
wxGTK:
|
||||
|
||||
|
@@ -887,8 +887,10 @@ wxThreadError wxThread::Delete(ExitCode *pRc)
|
||||
break;
|
||||
|
||||
case WAIT_OBJECT_0 + 1:
|
||||
// new message arrived, process it
|
||||
if ( !wxTheApp->DoMessage() )
|
||||
// new message arrived (or maybe not... sometimes the queue
|
||||
// is empty, hence call Pending() to be sure and not hang
|
||||
// forever in DoMessage(), process it
|
||||
if ( wxTheApp->Pending() && !wxTheApp->DoMessage() )
|
||||
{
|
||||
// WM_QUIT received: kill the thread
|
||||
Kill();
|
||||
|
Reference in New Issue
Block a user