Don't timeout on a Wait() if a dialog is showing. The movie decode semaphone would timeout on most dialogs.

Increase Win32 semaphone timeout from 15 -> 60 secs.
This commit is contained in:
Chris Danford
2004-08-07 21:38:54 +00:00
parent 1d0dff5ad5
commit d755e660a6
3 changed files with 27 additions and 2 deletions
+4 -2
View File
@@ -188,12 +188,14 @@ void SemaImpl_Win32::Post()
bool SemaImpl_Win32::Wait()
{
int len = 15000;
int len = 60000;
int tries = 2;
while( tries-- )
{
/* Wait for fifteen seconds. If it takes longer than that, we're probably deadlocked. */
/* Wait for 60 seconds. In debug builds, some screens may take longer
* than 15 seconds to load. If it takes longer than that, we're
* probably deadlocked. */
if( SimpleWaitForSingleObject( sem, len ) )
{
--m_iCounter;