From 38d377e230b31d00d375f8e48cd8e7d536862855 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 10 Mar 2007 15:56:08 +0000 Subject: [PATCH] corrected bug due to testing for wrong return value in wxConditionInternal::WaitTimeout() (patch 1650643) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mac/carbon/thread.cpp b/src/mac/carbon/thread.cpp index a2d66b51f3..cacf2e5e35 100644 --- a/src/mac/carbon/thread.cpp +++ b/src/mac/carbon/thread.cpp @@ -837,7 +837,7 @@ wxCondError wxConditionInternal::WaitTimeout( unsigned long milliseconds ) wxSemaError err = m_semaphore.WaitTimeout(milliseconds); - if ( err == wxSEMA_BUSY ) + if ( err == wxSEMA_TIMEOUT ) { // another potential race condition exists here it is caused when a // 'waiting' thread timesout, and returns from WaitForSingleObject, but -- 2.47.2