Bug 506880 - Deadlock on exit in threadsafe shell. r=gal.

This commit is contained in:
Jason Orendorff 2009-07-28 04:39:40 -05:00
parent eb14203c0c
commit ef5947747a

View File

@ -87,7 +87,7 @@ void
JSBackgroundThread::work()
{
PR_Lock(lock);
do {
while (!shutdown) {
PR_WaitCondVar(wakeup, PR_INTERVAL_NO_TIMEOUT);
JSBackgroundTask* t;
while ((t = stack) != NULL) {
@ -97,7 +97,7 @@ JSBackgroundThread::work()
delete t;
PR_Lock(lock);
}
} while (!shutdown);
}
PR_Unlock(lock);
}