зеркало из https://github.com/mozilla/gecko-dev.git
Bug 505718 - 'mochitest-plain timeout (hanging?) during shutdown on Windows'. Adding a comment to make the fix clearer.
This commit is contained in:
Родитель
68b319d377
Коммит
3a9ade19e6
|
@ -555,7 +555,9 @@ DOMWorkerOperationCallback(JSContext* aCx)
|
|||
nsAutoMonitor mon(worker->Pool()->Monitor());
|
||||
|
||||
// There's a small chance that the worker was canceled after our check
|
||||
// above in which case we shouldn't wait here.
|
||||
// above in which case we shouldn't wait here. We're guaranteed not to race
|
||||
// here because the pool reenters its monitor after canceling each worker
|
||||
// in order to notify its condition variable.
|
||||
if (!worker->IsCanceled()) {
|
||||
mon.Wait();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче