mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-18 16:31:44 +03:00
Revert "Fixed using wrong local variable #4723"
This reverts commit d7063a87c8
.
This commit is contained in:
parent
622045b396
commit
539ac32136
@ -552,12 +552,11 @@ MSWindowsWatchdog::getActiveDesktop(LPSECURITY_ATTRIBUTES security)
|
|||||||
ARCH->lockMutex(m_mutex);
|
ARCH->lockMutex(m_mutex);
|
||||||
int waitTime = 0;
|
int waitTime = 0;
|
||||||
while (!m_ready) {
|
while (!m_ready) {
|
||||||
if (waitTime >= MAXIMUM_WAIT_TIME) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ARCH->waitCondVar(m_condVar, m_mutex, 1.0);
|
ARCH->waitCondVar(m_condVar, m_mutex, 1.0);
|
||||||
waitTime++;
|
i++;
|
||||||
}
|
}
|
||||||
m_ready = false;
|
m_ready = false;
|
||||||
ARCH->unlockMutex(m_mutex);
|
ARCH->unlockMutex(m_mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user