mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 985526 part 2 - Use notifyOne instead of notifyAll in StartOffThreadParseScript and StartOffThreadCompression. r=bhackett
This commit is contained in:
parent
e34a8dbb77
commit
19ae495674
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user