]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug in wxSemaphore::WaitTimeout() which was calling the wrong wxCondition:...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Dec 2002 23:47:34 +0000 (23:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 6 Dec 2002 23:47:34 +0000 (23:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/threadpsx.cpp

index b4b91685b9d24b9eb12619421cda46bc92fbbb92..73348a50ce7ef4500ef903e3e7371541d419b880 100644 (file)
@@ -532,7 +532,7 @@ wxSemaError wxSemaphoreInternal::WaitTimeout(unsigned long milliseconds)
             return wxSEMA_TIMEOUT;
         }
 
-        if ( m_cond.Wait(remainingTime) != wxCOND_NO_ERROR )
+        if ( m_cond.WaitTimeout(remainingTime) != wxCOND_NO_ERROR )
             return wxSEMA_MISC_ERROR;
     }