Bug 505718 - 'mochitest-plain timeout (hanging?) during shutdown on Windows'. Adding a comment to make the fix clearer.

This commit is contained in:
Ben Turner 2009-08-12 21:42:09 -07:00
parent 68b319d377
commit 3a9ade19e6

View File

@ -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();
}