r=edburns
author=rpotts

This fix seems to prevent the deadlock.
This commit is contained in:
edburns%acm.org 2001-07-19 22:48:08 +00:00
Родитель 04a2d87fea
Коммит 72cc61dc5c
1 изменённых файлов: 5 добавлений и 9 удалений

Просмотреть файл

@ -419,20 +419,16 @@ int processEventLoop(WebShellInitContext * initContext)
::PR_Sleep(PR_INTERVAL_NO_WAIT);
if ((initContext->initComplete) && (gActionQueue)) {
PLEvent * event = nsnull;
PL_ENTER_EVENT_QUEUE_MONITOR(gActionQueue);
if (::PL_EventAvailable(gActionQueue)) {
PLEvent * event = ::PL_GetEvent(gActionQueue);
if (event != nsnull) {
::PL_HandleEvent(event);
}
event = ::PL_GetEvent(gActionQueue);
}
PL_EXIT_EVENT_QUEUE_MONITOR(gActionQueue);
if (event != nsnull) {
::PL_HandleEvent(event);
}
}
if (initContext->stopThread) {
initContext->stopThread++;