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
This commit is contained in:
@@ -837,7 +837,7 @@ wxCondError wxConditionInternal::WaitTimeout( unsigned long milliseconds )
|
|||||||
|
|
||||||
wxSemaError err = m_semaphore.WaitTimeout(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
|
// another potential race condition exists here it is caused when a
|
||||||
// 'waiting' thread timesout, and returns from WaitForSingleObject, but
|
// 'waiting' thread timesout, and returns from WaitForSingleObject, but
|
||||||
|
Reference in New Issue
Block a user