Revert "Added timeout for waiting active destop result #4723"
This reverts commit aec52c36e6
.
This commit is contained in:
parent
539ac32136
commit
42f201785c
|
@ -37,7 +37,6 @@
|
||||||
#include <UserEnv.h>
|
#include <UserEnv.h>
|
||||||
#include <Shellapi.h>
|
#include <Shellapi.h>
|
||||||
|
|
||||||
#define MAXIMUM_WAIT_TIME 3
|
|
||||||
enum {
|
enum {
|
||||||
kOutputBufferSize = 4096
|
kOutputBufferSize = 4096
|
||||||
};
|
};
|
||||||
|
@ -550,13 +549,8 @@ MSWindowsWatchdog::getActiveDesktop(LPSECURITY_ATTRIBUTES security)
|
||||||
}
|
}
|
||||||
|
|
||||||
ARCH->lockMutex(m_mutex);
|
ARCH->lockMutex(m_mutex);
|
||||||
int waitTime = 0;
|
|
||||||
while (!m_ready) {
|
while (!m_ready) {
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
ARCH->waitCondVar(m_condVar, m_mutex, 1.0);
|
ARCH->waitCondVar(m_condVar, m_mutex, 1.0);
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
m_ready = false;
|
m_ready = false;
|
||||||
ARCH->unlockMutex(m_mutex);
|
ARCH->unlockMutex(m_mutex);
|
||||||
|
|
Loading…
Reference in New Issue