Applied patch [ 1380544 ] wxCondition::WaitTimeout() return value when timeout occurs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,7 +133,12 @@ wxCondError wxConditionInternal::Wait()
|
|||||||
wxSemaError err = m_semaphore.Wait();
|
wxSemaError err = m_semaphore.Wait();
|
||||||
m_mutex.Lock();
|
m_mutex.Lock();
|
||||||
|
|
||||||
return err == wxSEMA_NO_ERROR ? wxCOND_NO_ERROR : wxCOND_MISC_ERROR;
|
if ( err == wxSEMA_NO_ERROR )
|
||||||
|
return wxCOND_NO_ERROR;
|
||||||
|
else if ( err == wxSEMA_TIMEOUT )
|
||||||
|
return wxCOND_TIMEOUT;
|
||||||
|
else
|
||||||
|
return wxCOND_MISC_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxCondError wxConditionInternal::WaitTimeout(unsigned long milliseconds)
|
wxCondError wxConditionInternal::WaitTimeout(unsigned long milliseconds)
|
||||||
|
Reference in New Issue
Block a user