Bug 199200 Make Networking Tests XP friendly by using the eventqueueservice

r=darin


git-svn-id: svn://10.0.0.236/trunk@140703 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2003-04-04 16:01:51 +00:00
parent f7b26c1d78
commit 3fbb54fa10
6 changed files with 14 additions and 117 deletions

View File

@@ -343,27 +343,9 @@ main(int argc, char* argv[])
// Enter the message pump to allow the URL load to proceed.
while ( gKeepRunning ) {
#ifdef WIN32
MSG msg;
if (GetMessage(&msg, NULL, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
else
gKeepRunning = FALSE;
#elif XP_MAC
/* Mac stuff is missing here! */
#elif XP_OS2
QMSG qmsg;
if (WinGetMsg(0, &qmsg, 0, 0, 0))
WinDispatchMsg(0, &qmsg);
else
gKeepRunning = FALSE;
#else
PLEvent *gEvent;
rv = gEventQ->WaitForEvent(&gEvent);
rv = gEventQ->HandleEvent(gEvent);
#endif
gEventQ->WaitForEvent(&gEvent);
gEventQ->HandleEvent(gEvent);
}
}
else {