зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 25c65ac95fc5 (bug 1331854) for test_blob_worker_xhr_read.html | Test timed outs
--HG-- extra : rebase_source : 483615c23da5c9a4a1fb5ac57f843a811b60c896
This commit is contained in:
Родитель
a45811baf7
Коммит
09947a5e8c
|
@ -1015,20 +1015,12 @@ RemoteInputStream::ReallyBlockAndWaitForStream()
|
|||
|
||||
{
|
||||
MonitorAutoLock lock(mMonitor);
|
||||
|
||||
waited = !mStream;
|
||||
}
|
||||
|
||||
nsIThread* currentThread = NS_GetCurrentThread();
|
||||
MOZ_ASSERT(currentThread);
|
||||
|
||||
while (true) {
|
||||
{
|
||||
MonitorAutoLock lock(mMonitor);
|
||||
if (mStream) {
|
||||
break;
|
||||
}
|
||||
while (!mStream) {
|
||||
mMonitor.Wait();
|
||||
}
|
||||
MOZ_ALWAYS_TRUE(NS_ProcessNextEvent(currentThread));
|
||||
}
|
||||
|
||||
MOZ_ASSERT(mStream);
|
||||
|
|
Загрузка…
Ссылка в новой задаче