mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 506880 - Deadlock on exit in threadsafe shell. r=gal.
This commit is contained in:
parent
eb14203c0c
commit
ef5947747a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user