implement nsAppShell::Exit()

git-svn-id: svn://10.0.0.236/trunk@41749 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blizzard%redhat.com
1999-08-01 03:52:12 +00:00
parent adc3b31e6e
commit 3d6f2f55f7
2 changed files with 4 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ static NS_DEFINE_IID(kIEventQueueServiceIID, NS_IEVENTQUEUESERVICE_IID);
extern "C" int NS_TimeToNextTimeout(struct timeval *);
extern "C" void NS_ProcessTimeouts(void);
PRBool nsAppShell::DieAppShellDie = PR_FALSE;
// For debugging.
static char *event_names[] = {
@@ -197,7 +198,7 @@ nsresult nsAppShell::Run()
max_fd = queue_fd + 1;
}
// process events.
while (1) {
while (DieAppShellDie == PR_FALSE) {
XEvent event;
struct timeval cur_time;
struct timeval *cur_time_ptr;
@@ -281,6 +282,7 @@ nsresult nsAppShell::DispatchNativeEvent(PRBool aRealEvent, void *aEvent)
NS_METHOD nsAppShell::Exit()
{
DieAppShellDie = PR_TRUE;
return NS_OK;
}