XPCOM initialize primary event queue. 135531. r=brendan@mozilla.org, sr=darin@netscape.com

git-svn-id: svn://10.0.0.236/trunk@118995 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
2002-04-15 22:26:29 +00:00
parent 74861abc91
commit a17830dad4
28 changed files with 15 additions and 150 deletions

View File

@@ -24,7 +24,6 @@
#include "nsIServiceManager.h"
#include "nsIComponentRegistrar.h"
#include "nsIEventQueueService.h"
#include "nsIAppStartupNotifier.h"
#include "nsIStringBundle.h"
@@ -91,19 +90,6 @@ nsresult NS_InitEmbedding(nsILocalFile *mozBinDirectory,
sXPCOMCleanupHack.mCleanOnExit = PR_TRUE;
#endif
}
// Create the Event Queue for the UI thread...
//
// If an event queue already exists for the thread, then
// CreateThreadEventQueue(...) will fail...
// CreateThread0ueue(...) will fail...
nsCOMPtr<nsIEventQueueService> eventQService(
do_GetService(NS_EVENTQUEUESERVICE_CONTRACTID, &rv));
if (NS_FAILED(rv))
return rv;
eventQService->CreateThreadEventQueue();
// Register components
if (!sRegistryInitializedFlag)
{