mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
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:
parent
a45811baf7
commit
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);
|
||||
|
Loading…
Reference in New Issue
Block a user