Bug 985526 part 2 - Use notifyOne instead of notifyAll in StartOffThreadParseScript and StartOffThreadCompression. r=bhackett

This commit is contained in:
Jan de Mooij 2014-03-20 12:05:46 +01:00
parent e34a8dbb77
commit 19ae495674

View File

@ -366,7 +366,7 @@ js::StartOffThreadParseScript(JSContext *cx, const ReadOnlyCompileOptions &optio
if (!WorkerThreadState().parseWorklist().append(task.get()))
return false;
WorkerThreadState().notifyAll(GlobalWorkerThreadState::PRODUCER);
WorkerThreadState().notifyOne(GlobalWorkerThreadState::PRODUCER);
}
task.forget();
@ -901,7 +901,7 @@ js::StartOffThreadCompression(ExclusiveContext *cx, SourceCompressionTask *task)
if (!WorkerThreadState().compressionWorklist().append(task))
return false;
WorkerThreadState().notifyAll(GlobalWorkerThreadState::PRODUCER);
WorkerThreadState().notifyOne(GlobalWorkerThreadState::PRODUCER);
return true;
}