use wxCondition::WaitTimeout() instead of Wait() in wxSemaphore::WaitTimeout() as HEAD already does (closes bug 1263806)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@35230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -528,7 +528,7 @@ wxSemaError wxSemaphoreInternal::WaitTimeout(unsigned long milliseconds)
|
|||||||
return wxSEMA_TIMEOUT;
|
return wxSEMA_TIMEOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_cond.Wait(remainingTime) != wxCOND_NO_ERROR )
|
if ( m_cond.WaitTimeout(remainingTime) != wxCOND_NO_ERROR )
|
||||||
return wxSEMA_MISC_ERROR;
|
return wxSEMA_MISC_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user